Update 19-config.sh

https://github.com/alexbelgium/hassio-addons/issues/351
This commit is contained in:
Alexandre
2022-06-08 11:33:54 +02:00
committed by GitHub
parent 68daef97f5
commit da1119a87f

View File

@@ -80,6 +80,10 @@ CONFIG=$(bashio::jq "${CONFIG}" ".\"download-dir\"=\"${download_dir}\"")
CONFIG=$(bashio::jq "${CONFIG}" ".\"rpc-host-whitelist-enabled\"=false")
CONFIG=$(bashio::jq "${CONFIG}" ".\"bind-address-ipv4\"=\"0.0.0.0\"")
if bashio::config.has_value 'watch_dir'; then
CONFIG=$(bashio::jq "${CONFIG}" ".\"watch-dir\"=\"${watch_dir}\"")
fi
echo "${CONFIG}" >"$CONFIGDIR"/settings.json &&
jq . -S "$CONFIGDIR"/settings.json | cat >temp.json && mv temp.json $CONFIGDIR/settings.json