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:
@@ -93,6 +93,10 @@
|
|||||||
# Current: v3.5
|
# 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 ─────────────────────────────────────────────────────────────────────────────────────
|
# ── ICONS ─────────────────────────────────────────────────────────────────────────────────────
|
||||||
# ==============================================================================================
|
# ==============================================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user