From d61d644b1630f0aaacf8c604804671ce48719851 Mon Sep 17 00:00:00 2001 From: yourmoonlight Date: Thu, 26 Oct 2023 23:16:26 +0800 Subject: [PATCH] fix rooch init failed with phrase (#1041) --- scripts/check_dev_deploy_status.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/check_dev_deploy_status.sh b/scripts/check_dev_deploy_status.sh index e25f8f342a..d0229fc1e3 100644 --- a/scripts/check_dev_deploy_status.sh +++ b/scripts/check_dev_deploy_status.sh @@ -18,9 +18,9 @@ STATUS=$(docker inspect --format '{{.State.Status}}' $CONTAINER_ID) 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 + docker run -v /root:/root ghcr.io/rooch-network/rooch:$IMAGE_TAG server clean -n dev rm -rf ~/.rooch - rooch init -m "$DEV_MNEMONIC_PHRASE" --skip-password + docker run -v /root:/root ghcr.io/rooch-network/rooch:$IMAGE_TAG init -m "$(echo $DEV_MNEMONIC_PHRASE)" --skip-password docker start $CONTAINER_ID if [ $? -eq 0 ]; then echo "Container $CONTAINER_ID Successfully restarted."