Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor bugfixes #131

Merged
merged 7 commits into from
Mar 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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[@]}"