mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-01 05:14:04 +02:00
Update 19-config.sh
This commit is contained in:
@@ -81,7 +81,7 @@ CONFIG=$(bashio::jq "${CONFIG}" ".\"rpc-host-whitelist-enabled\"=false")
|
|||||||
CONFIG=$(bashio::jq "${CONFIG}" ".\"bind-address-ipv4\"=\"0.0.0.0\"")
|
CONFIG=$(bashio::jq "${CONFIG}" ".\"bind-address-ipv4\"=\"0.0.0.0\"")
|
||||||
|
|
||||||
if bashio::config.has_value 'watch_dir'; then
|
if bashio::config.has_value 'watch_dir'; then
|
||||||
CONFIG=$(bashio::jq "${CONFIG}" ".\"watch-dir\"=\"${watch_dir}\"")
|
CONFIG=$(bashio::jq "${CONFIG}" ".\"watch-dir\"=\"$(bashio::config 'watch_dir')\"")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "${CONFIG}" >"$CONFIGDIR"/settings.json &&
|
echo "${CONFIG}" >"$CONFIGDIR"/settings.json &&
|
||||||
|
|||||||
Reference in New Issue
Block a user