From 76d621506710e2a3c7d860203dc83634abb0f820 Mon Sep 17 00:00:00 2001 From: Laszlo Magyar Date: Fri, 30 Jan 2026 13:34:57 +0100 Subject: [PATCH] Revert "add export LOG_FD to each script (#568)" This reverts commit aa49672809d0d50da12d7e4ff521a4a92697783b. --- tailscale/rootfs/etc/NetworkManager/dispatcher.d/protect-subnets | 1 - tailscale/rootfs/etc/s6-overlay/s6-rc.d/forwarding/finish | 1 - tailscale/rootfs/etc/s6-overlay/s6-rc.d/forwarding/run | 1 - tailscale/rootfs/etc/s6-overlay/s6-rc.d/init-nginx/run | 1 - tailscale/rootfs/etc/s6-overlay/s6-rc.d/local-network/run | 1 - tailscale/rootfs/etc/s6-overlay/s6-rc.d/mss-clamping/finish | 1 - tailscale/rootfs/etc/s6-overlay/s6-rc.d/mss-clamping/run | 1 - tailscale/rootfs/etc/s6-overlay/s6-rc.d/nginx/finish | 1 - tailscale/rootfs/etc/s6-overlay/s6-rc.d/nginx/run | 1 - tailscale/rootfs/etc/s6-overlay/s6-rc.d/post-tailscaled/run | 1 - tailscale/rootfs/etc/s6-overlay/s6-rc.d/protect-subnets/finish | 1 - tailscale/rootfs/etc/s6-overlay/s6-rc.d/protect-subnets/run | 1 - .../rootfs/etc/s6-overlay/s6-rc.d/share-homeassistant/finish | 1 - tailscale/rootfs/etc/s6-overlay/s6-rc.d/share-homeassistant/run | 1 - tailscale/rootfs/etc/s6-overlay/s6-rc.d/taildrop/finish | 1 - tailscale/rootfs/etc/s6-overlay/s6-rc.d/taildrop/run | 1 - tailscale/rootfs/etc/s6-overlay/s6-rc.d/tailscaled/finish | 1 - tailscale/rootfs/etc/s6-overlay/s6-rc.d/tailscaled/run | 1 - tailscale/rootfs/etc/s6-overlay/s6-rc.d/web/finish | 1 - tailscale/rootfs/etc/s6-overlay/s6-rc.d/web/run | 1 - tailscale/rootfs/etc/s6-overlay/scripts/stage2_hook.sh | 1 - tailscale/rootfs/usr/bin/healthcheck | 1 - tailscale/rootfs/usr/bin/protect-subnet-routes | 1 - tailscale/rootfs/usr/bin/subnet-routes | 1 - tailscale/rootfs/usr/bin/unprotect-subnet-routes | 1 - 25 files changed, 25 deletions(-) diff --git a/tailscale/rootfs/etc/NetworkManager/dispatcher.d/protect-subnets b/tailscale/rootfs/etc/NetworkManager/dispatcher.d/protect-subnets index b075f56cd..453430063 100755 --- a/tailscale/rootfs/etc/NetworkManager/dispatcher.d/protect-subnets +++ b/tailscale/rootfs/etc/NetworkManager/dispatcher.d/protect-subnets @@ -1,6 +1,5 @@ #!/command/with-contenv-merge bashio # shellcheck shell=bash -export LOG_FD # The shebang 'with-contenv-merge' above is identical with 'with-contenv', but doesn't clear the current environment containing the dispatcher variables function halt-app() { diff --git a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/forwarding/finish b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/forwarding/finish index a70c02bb2..9155a4d2d 100755 --- a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/forwarding/finish +++ b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/forwarding/finish @@ -1,6 +1,5 @@ #!/command/with-contenv bashio # shellcheck shell=bash -export LOG_FD # ============================================================================== # Home Assistant Community App: Tailscale # Remove forwarding diff --git a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/forwarding/run b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/forwarding/run index 7292a3325..b1420f5a8 100755 --- a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/forwarding/run +++ b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/forwarding/run @@ -1,6 +1,5 @@ #!/command/with-contenv bashio # shellcheck shell=bash -export LOG_FD # ============================================================================== # Home Assistant Community App: Tailscale # Forward incoming tailnet connections to the host's primary interface diff --git a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/init-nginx/run b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/init-nginx/run index 4f561d4c2..51913e1a8 100755 --- a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/init-nginx/run +++ b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/init-nginx/run @@ -1,6 +1,5 @@ #!/command/with-contenv bashio # shellcheck shell=bash -export LOG_FD # ============================================================================== # Home Assistant Community App: Tailscale # Configures NGINX for use with the Tailscale web diff --git a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/local-network/run b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/local-network/run index b73b40f1c..0bfcd12f2 100755 --- a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/local-network/run +++ b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/local-network/run @@ -1,6 +1,5 @@ #!/command/with-contenv bashio # shellcheck shell=bash -export LOG_FD # ============================================================================== # Wait for the local network (default HA interface) to be ready # ============================================================================== diff --git a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/mss-clamping/finish b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/mss-clamping/finish index 11822c8db..39a0ba9ce 100755 --- a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/mss-clamping/finish +++ b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/mss-clamping/finish @@ -1,6 +1,5 @@ #!/command/with-contenv bashio # shellcheck shell=bash -export LOG_FD # ============================================================================== # Home Assistant Community App: Tailscale # Remove the MSS clamping diff --git a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/mss-clamping/run b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/mss-clamping/run index 9d96e74d5..9ff55fc1c 100755 --- a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/mss-clamping/run +++ b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/mss-clamping/run @@ -1,6 +1,5 @@ #!/command/with-contenv bashio # shellcheck shell=bash -export LOG_FD # ============================================================================== # Home Assistant Community App: Tailscale # Clamp the MSS to the MTU diff --git a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/nginx/finish b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/nginx/finish index 2b2ab00e3..8c10eb468 100755 --- a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/nginx/finish +++ b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/nginx/finish @@ -1,6 +1,5 @@ #!/command/with-contenv bashio # shellcheck shell=bash -export LOG_FD # ============================================================================== # Home Assistant Community App: Tailscale # Take down the S6 supervision tree when Nginx fails diff --git a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/nginx/run b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/nginx/run index 375ec5c62..c8b5b1421 100755 --- a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/nginx/run +++ b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/nginx/run @@ -1,6 +1,5 @@ #!/command/with-contenv bashio # shellcheck shell=bash -export LOG_FD # ============================================================================== # Home Assistant Community App: Tailscale # Runs the Nginx daemon 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 1faaa8629..60d4a0112 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 @@ -1,6 +1,5 @@ #!/command/with-contenv bashio # shellcheck shell=bash -export LOG_FD # ============================================================================== # Home Assistant Community App: Tailscale # Runs after the machine has been logged in into the Tailscale network diff --git a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/protect-subnets/finish b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/protect-subnets/finish index cbc296213..873742939 100755 --- a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/protect-subnets/finish +++ b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/protect-subnets/finish @@ -1,6 +1,5 @@ #!/command/with-contenv bashio # shellcheck shell=bash -export LOG_FD # ============================================================================== # Home Assistant Community App: Tailscale # Take down the S6 supervision tree when protect-subnets fails diff --git a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/protect-subnets/run b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/protect-subnets/run index aa872cf26..adddd9b5f 100755 --- a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/protect-subnets/run +++ b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/protect-subnets/run @@ -1,6 +1,5 @@ #!/command/with-contenv bashio # shellcheck shell=bash -export LOG_FD # ============================================================================== # Home Assistant Community App: Tailscale # Prevent local subnets to be routed toward the tailnet diff --git a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/share-homeassistant/finish b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/share-homeassistant/finish index bc6add388..e734728b5 100755 --- a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/share-homeassistant/finish +++ b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/share-homeassistant/finish @@ -1,6 +1,5 @@ #!/command/with-contenv bashio # shellcheck shell=bash -export LOG_FD # ============================================================================== # Home Assistant Community App: Tailscale # Take down the S6 supervision tree when share-homeassistant fails diff --git a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/share-homeassistant/run b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/share-homeassistant/run index 09f62f79e..686a9345a 100755 --- a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/share-homeassistant/run +++ b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/share-homeassistant/run @@ -1,6 +1,5 @@ #!/command/with-contenv bashio # shellcheck shell=bash -export LOG_FD # ============================================================================== # Home Assistant Community App: Tailscale # Enables Tailscale Serve or Funnel feature to share Home Assistant diff --git a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/taildrop/finish b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/taildrop/finish index 6fc4f4117..225d76808 100755 --- a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/taildrop/finish +++ b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/taildrop/finish @@ -1,6 +1,5 @@ #!/command/with-contenv bashio # shellcheck shell=bash -export LOG_FD # ============================================================================== # Home Assistant Community App: Tailscale # Take down the S6 supervision tree when Taildrop fails diff --git a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/taildrop/run b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/taildrop/run index 1f2788b6c..443eddb6e 100755 --- a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/taildrop/run +++ b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/taildrop/run @@ -1,6 +1,5 @@ #!/command/with-contenv bashio # shellcheck shell=bash -export LOG_FD # ============================================================================== # Home Assistant Community App: Tailscale # Fetches files send via Taildrop diff --git a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/tailscaled/finish b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/tailscaled/finish index 5af835ba3..5181a7cea 100755 --- a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/tailscaled/finish +++ b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/tailscaled/finish @@ -1,6 +1,5 @@ #!/command/with-contenv bashio # shellcheck shell=bash -export LOG_FD # ============================================================================== # Home Assistant Community App: Tailscale # Take down the S6 supervision tree when Tailscale fails diff --git a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/tailscaled/run b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/tailscaled/run index 9aef04979..f7fc3911f 100755 --- a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/tailscaled/run +++ b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/tailscaled/run @@ -1,6 +1,5 @@ #!/command/with-contenv bashio # shellcheck shell=bash -export LOG_FD # ============================================================================== # Home Assistant Community App: Tailscale # Runs tailscale diff --git a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/web/finish b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/web/finish index bd86c96ff..c044b390c 100755 --- a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/web/finish +++ b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/web/finish @@ -1,6 +1,5 @@ #!/command/with-contenv bashio # shellcheck shell=bash -export LOG_FD # ============================================================================== # Home Assistant Community App: Tailscale # Take down the S6 supervision tree when Tailscale web fails 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 a8e3aa920..cd0201c02 100755 --- a/tailscale/rootfs/etc/s6-overlay/s6-rc.d/web/run +++ b/tailscale/rootfs/etc/s6-overlay/s6-rc.d/web/run @@ -1,6 +1,5 @@ #!/command/with-contenv bashio # shellcheck shell=bash -export LOG_FD # ============================================================================== # Home Assistant Community App: Tailscale # Runs tailscale web interface diff --git a/tailscale/rootfs/etc/s6-overlay/scripts/stage2_hook.sh b/tailscale/rootfs/etc/s6-overlay/scripts/stage2_hook.sh index 4b2714835..040732a1d 100755 --- a/tailscale/rootfs/etc/s6-overlay/scripts/stage2_hook.sh +++ b/tailscale/rootfs/etc/s6-overlay/scripts/stage2_hook.sh @@ -1,6 +1,5 @@ #!/command/with-contenv bashio # shellcheck shell=bash -export LOG_FD # ============================================================================== # Home Assistant Community App: Tailscale # S6 Overlay stage2 hook to customize services diff --git a/tailscale/rootfs/usr/bin/healthcheck b/tailscale/rootfs/usr/bin/healthcheck index 71ad37d89..90ba760e5 100755 --- a/tailscale/rootfs/usr/bin/healthcheck +++ b/tailscale/rootfs/usr/bin/healthcheck @@ -1,6 +1,5 @@ #!/command/with-contenv bashio # shellcheck shell=bash -export LOG_FD # Plain (non-json) tailscale status returns error when status is not Running or Starting, so eg. NeedsLogin and NeedsMachineAuth would make it unhealthy # The .Health json filter returns any problems, so even temporary health problems would make it unhealthy diff --git a/tailscale/rootfs/usr/bin/protect-subnet-routes b/tailscale/rootfs/usr/bin/protect-subnet-routes index a56fd1299..05579ae7b 100755 --- a/tailscale/rootfs/usr/bin/protect-subnet-routes +++ b/tailscale/rootfs/usr/bin/protect-subnet-routes @@ -1,6 +1,5 @@ #!/usr/bin/env bashio # shellcheck shell=bash -export LOG_FD # ============================================================================== # In case of non userspace networking, # add local subnets to ip rules with higher priority than Tailscale's routing diff --git a/tailscale/rootfs/usr/bin/subnet-routes b/tailscale/rootfs/usr/bin/subnet-routes index d277e6de7..3806f030f 100755 --- a/tailscale/rootfs/usr/bin/subnet-routes +++ b/tailscale/rootfs/usr/bin/subnet-routes @@ -1,6 +1,5 @@ #!/usr/bin/env bashio # shellcheck shell=bash -export LOG_FD # ============================================================================== # Print possible subnet routes to stdout # ============================================================================== diff --git a/tailscale/rootfs/usr/bin/unprotect-subnet-routes b/tailscale/rootfs/usr/bin/unprotect-subnet-routes index 6dcda4bbd..5d9bb8b70 100755 --- a/tailscale/rootfs/usr/bin/unprotect-subnet-routes +++ b/tailscale/rootfs/usr/bin/unprotect-subnet-routes @@ -1,6 +1,5 @@ #!/usr/bin/env bashio # shellcheck shell=bash -export LOG_FD # ============================================================================== # In case of non userspace networking, # remove local subnets from ip rules