test
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
name: VirtualHere Client
|
name: VirtualHere Client
|
||||||
version: "0.1.163"
|
version: "0.1.164"
|
||||||
slug: vhclient
|
slug: vhclient
|
||||||
description: VirtualHere Client
|
description: VirtualHere Client
|
||||||
arch:
|
arch:
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
#!/command/with-contenv bashio
|
#!/command/with-contenv bashio
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
test=($(bashio::config 'test'))
|
#test=($(bashio::config 'test'))
|
||||||
test+=('one', 'two')
|
#test+=('one', 'two')
|
||||||
#bashio::config::update 'test' "${test[@]}"
|
#bashio::config::update 'test' "${test[@]}"
|
||||||
bashio::addon.option 'test' $test[@]
|
#bashio::addon.option 'test' $test[@]
|
||||||
|
|
||||||
#TEST
|
#TEST
|
||||||
#bashio::addon.option 'usbdevices' { 'name': 'one', 'use': false}
|
#bashio::addon.option 'usbdevices' { 'name': 'one', 'use': false}
|
||||||
@@ -12,3 +12,9 @@ bashio::addon.option 'test' $test[@]
|
|||||||
#my_array+=('one') # Add a new item to the array
|
#my_array+=('one') # Add a new item to the array
|
||||||
#my_array+=({ 'name': 'one', 'use': false}) # Add a new item to the array
|
#my_array+=({ 'name': 'one', 'use': false}) # Add a new item to the array
|
||||||
#bashio::config::update 'my_array' "${my_array[@]}"
|
#bashio::config::update 'my_array' "${my_array[@]}"
|
||||||
|
|
||||||
|
options=$(bashio::addon.options)
|
||||||
|
new_options=$(echo $options | jq .gurka=false)
|
||||||
|
payload=$(bashio::var.json options "^${new_options}")
|
||||||
|
bashio::api.supervisor POST "/addons/self/options" "${payload}"
|
||||||
|
curl -sH "Authorization: Bearer $SUPERVISOR_TOKEN" http://supervisor/addons/self/info | jq .data.options
|
||||||
|
|||||||
Reference in New Issue
Block a user