Skip to content

Commit 6f939fc

Browse files
committed
fix option load for upgrades
1 parent f9a1dee commit 6f939fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tailscale/rootfs/etc/s6-overlay/scripts/stage2_hook.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ function try {
1818
set -e
1919
}
2020

21+
# Load add-on options, even deprecated one to upgrade
22+
options=$(bashio::addon.options)
23+
2124
# Upgrade configuration from 'proxy', 'funnel' and 'proxy_and_funnel_port' to 'share_homeassistant' and 'share_on_port'
2225
# This step can be removed in a later version
23-
options=$(bashio::addon.options)
2426
proxy=$(bashio::jq "${options}" '.proxy // empty')
2527
funnel=$(bashio::jq "${options}" '.funnel // empty')
2628
proxy_and_funnel_port=$(bashio::jq "${options}" '.proxy_and_funnel_port // empty')

0 commit comments

Comments
 (0)