Skip to content

Commit

Permalink
implement coderabbitai's idea
Browse files Browse the repository at this point in the history
  • Loading branch information
lmagyar committed Jan 20, 2025
1 parent fc8efb5 commit e0299e7
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
declare wait_counter=0
declare curl_result

# Validate share_homeassistant value
if ! bashio::config.equals 'share_homeassistant' 'serve' && \
! bashio::config.equals 'share_homeassistant' 'funnel'
then
bashio::log.error "Invalid value '$(bashio::config 'share_homeassistant')' for share_homeassistant. Must be either 'serve' or 'funnel'"
bashio::exit.nok
fi

# Check if Tailscale HTTPS is enabled
if ! /opt/tailscale status --self=true --peers=false --json \
| jq -rce '.Self.CapMap | has("https")' > /dev/null;
Expand Down

0 comments on commit e0299e7

Please sign in to comment.