diff --git a/scripts/check_dev_deploy_status.sh b/scripts/check_dev_deploy_status.sh index 371d738866..a72307370f 100644 --- a/scripts/check_dev_deploy_status.sh +++ b/scripts/check_dev_deploy_status.sh @@ -14,13 +14,14 @@ fi # get container status STATUS=$(docker inspect --format '{{.State.Status}}' $CONTAINER_ID) +CLEANED_MNEMONIC=$(echo ${{secrets.DEV_MNEMONIC_PHRASE}} | tr '\n' ' ') if [ "$STATUS" != "running" ]; then echo "Container $CONTAINER_ID is not running,trying to clean data and restart" echo "Start cleaning the data." rooch server clean -n dev rm -rf ~/.rooch - rooch init -m ${{secrets.DEV_MNEMONIC_PHRASE}} --skip-password + rooch init -m $CLEANED_MNEMONIC --skip-password docker start $CONTAINER_ID if [ $? -eq 0 ]; then echo "Container $CONTAINER_ID Successfully restarted."