mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01:00
Update 19-config.sh
https://github.com/alexbelgium/hassio-addons/issues/351
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user