test
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
#!/command/with-contenv bashio
|
||||
|
||||
options=$(bashio::api.supervisor GET "/addons/self/options/config")
|
||||
autofind=$(echo $options | jq '. | if .autofind then true else false end')
|
||||
|
||||
if $autofind; then
|
||||
bashio::log.info "Enable AutoFind"
|
||||
/usr/bin/vh_edit_config General AutoFind 1
|
||||
else
|
||||
bashio::log.info "Disable AutoFind"
|
||||
/usr/bin/vh_edit_config General AutoFind 0
|
||||
fi
|
||||
|
||||
if bashio::config.has_value 'clientid'; then
|
||||
clientid=($(bashio::config 'clientid'))
|
||||
bashio::log.info "Set ClientId to ${clientid}"
|
||||
/usr/bin/vh_edit_config General ClientId ${clientid}
|
||||
fi
|
||||
@@ -1 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-config/run
|
||||
/etc/s6-overlay/s6-rc.d/scripts/init-config
|
||||
Reference in New Issue
Block a user