From 7a61a56ee13039fd5fb917d53afa617414a8716d Mon Sep 17 00:00:00 2001 From: gmer4lfe Date: Sun, 24 May 2026 21:08:39 -0400 Subject: [PATCH] fix(common): prepend /usr/local/sbin to PATH for cron compatibility Cron runs with PATH=/usr/bin:/bin, which omits /usr/local/sbin where tailscale (and other Unraid tools) live. resolve_remote_ip silently got empty results from both tailscale calls, failing all 3 retry attempts every scheduled run. Export the full path at source time so all scripts find tailscale regardless of how they're invoked. --- common.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common.sh b/common.sh index 39ce672..2454344 100755 --- a/common.sh +++ b/common.sh @@ -93,6 +93,10 @@ # Current: v3.5 # ============================================================================================== +# Cron runs with a minimal PATH (/usr/bin:/bin) that omits /usr/local/sbin where tailscale, +# and other Unraid tools live. Prepend it here so every sourcing script finds them. +export PATH="/usr/local/sbin:/usr/local/bin:$PATH" + # ============================================================================================== # ── ICONS ───────────────────────────────────────────────────────────────────────────────────── # ==============================================================================================