Skip to content

Commit

Permalink
fix rooch init failed with phrase (#1041)
Browse files Browse the repository at this point in the history
  • Loading branch information
yourmoonlight authored Oct 26, 2023
1 parent 6fa0191 commit d61d644
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/check_dev_deploy_status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit d61d644

Please sign in to comment.