Merge pull request #1980 from Squidly271/patch-16

Add support to Tailscale for fallback TS Dir
This commit is contained in:
tom mortensen
2025-01-08 16:58:14 -08:00
committed by GitHub
+2
View File
@@ -146,6 +146,8 @@ elif [ -d "/config" ]; then
TSD_STATE_DIR="/config/.tailscale_state"
elif [ -d "/data" ]; then
TSD_STATE_DIR="/data/.tailscale_state"
elif [ ! -z "${TAILSCALE_FALLBACK_DIR}" ]; then
TSD_STATE_DIR="${TAILSCALE_FALLBACK_DIR}/.tailscale_state"
else
echo "ERROR: Couldn't detect persistent Docker directory for .tailscale_state!"
echo " Please enable Tailscale Advanced Settings in the Docker template and set the Tailscale State Directory manually!"