test
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
#!/command/with-contenv bashio
|
||||
|
||||
options=$(bashio::api.supervisor GET "/addons/self/options/config")
|
||||
preventconfig=$(echo $options | jq '. | if .preventconfig then true else false end')
|
||||
autofind=$(echo $options | jq '. | if .autofind then true else false end')
|
||||
autouse=$(echo $options | jq '. | if .autouse then true else false end')
|
||||
clientid=$(echo $options | jq '.clientid | select(. != null)')
|
||||
manualhub=$(echo $options | jq '.manualhub | select(. != null)')
|
||||
|
||||
s6-rc set preventconfig $preventconfig
|
||||
|
||||
if $autofind; then
|
||||
bashio::log.info "Enable General AutoFind"
|
||||
/usr/bin/vh_editini General AutoFind 1
|
||||
|
||||
Reference in New Issue
Block a user