feat: make demo mode availble as settings to use in settings.json
This commit is contained in:
parent
3c108e8d44
commit
944597f123
1 changed files with 5 additions and 0 deletions
|
@ -229,6 +229,11 @@ if [[ -f "${STATE_FOLDER}/settings.json" ]]; then
|
||||||
INTERNAL_IP=$(get_json_field "${STATE_FOLDER}/settings.json" listenIp)
|
INTERNAL_IP=$(get_json_field "${STATE_FOLDER}/settings.json" listenIp)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# If demoMode is set in settings.json, use it
|
||||||
|
if [[ "$(get_json_field "${STATE_FOLDER}/settings.json" demoMode)" == "true" ]]; then
|
||||||
|
DEMO_MODE="true"
|
||||||
|
fi
|
||||||
|
|
||||||
# If storagePath is set in settings.json, use it
|
# If storagePath is set in settings.json, use it
|
||||||
storage_path_settings=$(get_json_field "${STATE_FOLDER}/settings.json" storagePath)
|
storage_path_settings=$(get_json_field "${STATE_FOLDER}/settings.json" storagePath)
|
||||||
if [[ "${storage_path_settings}" != "null" && "${storage_path_settings}" != "" ]]; then
|
if [[ "${storage_path_settings}" != "null" && "${storage_path_settings}" != "" ]]; then
|
||||||
|
|
Loading…
Reference in a new issue