From 4b10a2c0f7cf73eda05585a0edeb876ee7076441 Mon Sep 17 00:00:00 2001 From: Laszlo Magyar Date: Sun, 26 Mar 2023 11:26:45 +0200 Subject: [PATCH] Minor bugfixes (#131) Co-authored-by: lmagyar Co-authored-by: Franck Nijhof --- tailscale/rootfs/etc/s6-overlay/s6-rc.d/post-tailscaled/run | 4 ++-- tailscale/rootfs/etc/s6-overlay/s6-rc.d/web/run | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/post-tailscaled/run b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/post-tailscaled/run index 9a612bbf..f85722fa 100755 --- a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/post-tailscaled/run +++ b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/post-tailscaled/run @@ -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"; @@ -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 \ diff --git a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/web/run b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/web/run index b81b041f..73ca5e5c 100755 --- a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/web/run +++ b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/web/run @@ -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[@]}"