Change TS Sidecar routine

- Enable Official Tailscale Sidecar routine via variable instead of detecting the binaries in hook script
This commit is contained in:
Christoph
2025-02-12 07:59:42 +01:00
committed by GitHub
parent d46686c662
commit 87e8dd95fa

View File

@@ -36,8 +36,8 @@ if [ "$(id -u)" != "0" ]; then
error_handler
fi
if [ -f /usr/local/bin/tailscale ] || [ -f /usr/local/bin/tailscaled ]; then
echo "Official Tailscale Sidecar container detected!"
if [ "${OFFICIAL_TAILSCALE_SIDECAR}" = "true" ]; then
echo "Official Tailscale Sidecar container routine enabled!"
echo
OFFICIAL_TS_SIDECAR="true"
apk update >/dev/null 2>&1