Skip to content

Commit

Permalink
Minor bugfixes (#131)
Browse files Browse the repository at this point in the history
Co-authored-by: lmagyar <[email protected]>
Co-authored-by: Franck Nijhof <[email protected]>
  • Loading branch information
3 people authored Mar 26, 2023
1 parent 396280d commit 4b10a2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tailscale/rootfs/etc/s6-overlay/s6-rc.d/post-tailscaled/run
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ for address in "${addresses[@]}"; do
done

# Get configured tags
tags=$(bashio::config "tags | join(\",\")" "")
tags=$(bashio::config "tags//[] | join(\",\")" "")

# Wait for socket to be available
while ! bashio::fs.socket_exists "/var/run/tailscale/tailscaled.sock";
Expand All @@ -48,7 +48,7 @@ done
while true;
do
if /opt/tailscale status --json --peers=false --self=false \
| jq --exit-status '.BackendState == "Running" or .BackendState == "NeedsLogin"';
| jq --exit-status '.BackendState == "Running" or .BackendState == "NeedsLogin"' > /dev/null;
then
IFS=","
/opt/tailscale up \
Expand Down
2 changes: 1 addition & 1 deletion tailscale/rootfs/etc/s6-overlay/s6-rc.d/web/run
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ bashio::log.info 'Starting Tailscale web...'

options+=(web)
# Get random port
options+=(-listen 127.0.0.1:25899)
options+=(--listen 127.0.0.1:25899)

# Run Tailscale
exec /opt/tailscale "${options[@]}"

0 comments on commit 4b10a2c

Please sign in to comment.