Fix init script

This commit is contained in:
conache 2024-08-13 19:13:05 +03:00
parent 124872295a
commit 087e8b3543
No known key found for this signature in database

View File

@ -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