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.
This commit is contained in:
gmer4lfe
2026-05-24 21:08:39 -04:00
parent fc1fd27a3f
commit 7a61a56ee1
+4
View File
@@ -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 ─────────────────────────────────────────────────────────────────────────────────────
# ==============================================================================================