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