Add support to Tailscale for fallback TS Dir

This commit is contained in:
Squidly271
2025-01-08 18:25:24 -05:00
committed by GitHub
parent 619f185be1
commit 97f9fa0201
+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!"