This commit is contained in:
Alexandre
2022-02-18 14:44:39 +01:00
parent 4bc5b57396
commit 3a7f68c7d3
6 changed files with 30 additions and 28 deletions

View File

@@ -85,7 +85,7 @@ echo "${CONFIG}" >"$CONFIGDIR"/settings.json &&
# USER and PASS
###############
CONFIG=$(<$CONFIGDIR/settings.json)
CONFIG=$(<"$CONFIGDIR"/settings.json)
USER=$(bashio::config 'user')
PASS=$(bashio::config 'pass')
if bashio::config.has_value 'user'; then
@@ -98,7 +98,7 @@ fi
CONFIG=$(bashio::jq "${CONFIG}" ".\"rpc-authentication-required\"=${BOOLEAN}")
CONFIG=$(bashio::jq "${CONFIG}" ".\"rpc-username\"=\"${USER}\"")
CONFIG=$(bashio::jq "${CONFIG}" ".\"rpc-password\"=\"${PASS}\"")
echo "${CONFIG}" >$CONFIGDIR/settings.json &&
echo "${CONFIG}" >"$CONFIGDIR"/settings.json &&
jq . -S "$CONFIGDIR"/settings.json | cat >temp.json && mv temp.json "$CONFIGDIR"/settings.json
# WHITELIST