Skip to content

Commit

Permalink
fix option load for upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
lmagyar committed Jan 15, 2025
1 parent 9e909e7 commit ecf800a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tailscale/rootfs/etc/s6-overlay/scripts/stage2_hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ function try {
set -e
}

# Load add-on options, even deprecated one to upgrade
options=$(bashio::addon.options)

# Upgrade configuration from 'proxy', 'funnel' and 'proxy_and_funnel_port' to 'share_homeassistant' and 'share_on_port'
# This step can be removed in a later version
options=$(bashio::addon.options)
proxy=$(bashio::jq "${options}" '.proxy // empty')
funnel=$(bashio::jq "${options}" '.funnel // empty')
proxy_and_funnel_port=$(bashio::jq "${options}" '.proxy_and_funnel_port // empty')
Expand Down

0 comments on commit ecf800a

Please sign in to comment.