diff --git a/init.config b/init.config index 658fbb5..038439c 100755 --- a/init.config +++ b/init.config @@ -21,7 +21,6 @@ if [ -n "$mnemonic" ]; then echo "ALLORA_OFFCHAIN_NODE_CONFIG_JSON='$stringified_json'" > ./worker-data/env_file echo "NAME=$nodeName" >> ./worker-data/env_file echo "ENV_LOADED=true" >> ./worker-data/env_file - echo "wallet mnemonic already provided by you, loading config.json . Please proceed to run docker compose" exit 1 fi @@ -34,10 +33,8 @@ ENV_LOADED=$(grep '^ENV_LOADED=' ./worker-data/env_file | cut -d '=' -f 2) if [ "$ENV_LOADED" = "false" ]; then json_content=$(cat ./config.json) stringified_json=$(echo "$json_content" | jq -c .) - docker run -it --entrypoint=bash -v $(pwd)/worker-data:/data -v $(pwd)/scripts:/scripts -e NAME="${nodeName}" -e ALLORA_OFFCHAIN_NODE_CONFIG_JSON="${stringified_json}" alloranetwork/allora-chain:latest -c "bash /scripts/init.sh" echo "config.json saved to ./worker-data/env_file" else echo "config.json is already loaded, skipping the operation. You can set ENV_LOADED variable to false in ./worker-data/env_file to reload the config.json" -fi - \ No newline at end of file +fi \ No newline at end of file