Fix init script
This commit is contained in:
parent
124872295a
commit
087e8b3543
@ -13,6 +13,9 @@ if [ -z "$nodeName" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Ensure the worker-data directory exists
|
||||||
|
mkdir -p ./worker-data
|
||||||
|
|
||||||
json_content=$(cat ./config.json)
|
json_content=$(cat ./config.json)
|
||||||
stringified_json=$(echo "$json_content" | jq -c .)
|
stringified_json=$(echo "$json_content" | jq -c .)
|
||||||
|
|
||||||
@ -25,9 +28,6 @@ if [ -n "$mnemonic" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Ensure the worker-data directory exists
|
|
||||||
mkdir -p ./worker-data
|
|
||||||
|
|
||||||
if [ ! -f ./worker-data/env_file ]; then
|
if [ ! -f ./worker-data/env_file ]; then
|
||||||
echo "ENV_LOADED=false" > ./worker-data/env_file
|
echo "ENV_LOADED=false" > ./worker-data/env_file
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user