Fix append of bin/cita. [skip travis]
@@ -53,8 +53,8 @@ usage() {
cat <<EOF
Usage: $SCRIPT <command> <node> [options]
where <command> is one of the following:
- { help | create | port | setup | start | stop | restart
- ping | top | backup | clean | logs | logrotate }
+ { help | create | append | port | setup | start | stop
+ restart ping | top | backup | clean | logs | logrotate }
Run \`$SCRIPT help\` for more detailed information.
EOF
}
@@ -73,6 +73,10 @@ This is the primary script for controlling the $SCRIPT node.
Creates blockchains according to the following config,
use "cita create -h" to get more information.
"cita-config" has the same function.
+ append <config>
+ Append a node into an existed chain,
+ use "cita append -h" to get more information.
+ "cita-config" has the same function.
port <ports>
Sets docker port, for example: "cita port 1337:1337"
SERVICE CONTROL COMMANDS
@@ -127,6 +131,9 @@ create() {
$CITA_SCRIPTS/create_cita_config.py $@
}
+append() {
+ $CITA_SCRIPTS/create_cita_config.py $@
+}
# SERVICE CONTROL COMMANDS
start_rabbitmq() {
@@ -381,6 +388,11 @@ case "${COMMAND}" in
exit 0
;;
+ append)
+ append $@
+ exit 0
+ ;;
+
esac
if [ $# -lt 2 ]; then
