Handle the option of not resetting the network properly
This commit is contained in:
parent
95437e103a
commit
7781536576
|
@ -120,18 +120,15 @@ if [[ $PUBLISH_TESTNET_RESETS != "0" ]]; then
|
|||
scp "$DATA_DIR_ABS/privkey.protobuf" $BOOTSTRAP_HOST:/tmp/
|
||||
ssh $BOOTSTRAP_HOST "sudo install -o dockremap -g docker /tmp/privkey.protobuf $BOOTSTRAP_NODE_DOCKER_PATH"
|
||||
|
||||
echo "Publishing Docker image..."
|
||||
make push-last
|
||||
|
||||
echo Persisting testnet data to git...
|
||||
pushd "$NETWORK_DIR_ABS"
|
||||
git add $COMMITTED_FILES
|
||||
git commit -m "Reset of Nimbus $NETWORK"
|
||||
git push
|
||||
popd
|
||||
fi
|
||||
|
||||
echo "Publishing Docker image..."
|
||||
make push-last
|
||||
|
||||
#echo -e "\nA Watchtower systemd service will pull the new image and start new containers based on it, on each testnet host, in the next 2 minutes."
|
||||
|
||||
../env.sh nim --verbosity:0 manage_testnet_hosts.nims restart_nodes \
|
||||
--network=$NETWORK \
|
||||
|
@ -139,4 +136,4 @@ make push-last
|
|||
|
||||
bash /tmp/restart-nodes.sh
|
||||
rm /tmp/restart-nodes.sh
|
||||
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue