Resolve network watchdog host config after detect_hosts

MY_ID is not exported and is unset until detect_hosts runs, so the DDNS and NPM checks
were silently resolving empty config and skipping themselves every cycle.
This commit is contained in:
Gmer4Lfe
2026-08-01 20:37:58 -04:00
parent 3f5ad22632
commit 77b24e9823
2 changed files with 74 additions and 12 deletions
+3 -1
View File
@@ -116,7 +116,9 @@
unset _VV_CONF_CACHE _conf_base _disk_conf_basenames
# ━━━ Source shared functions ━━━
# common.sh sourced last — it calls detect_hosts() which needs HOST* vars to be set.
# common.sh sourced last — it defines detect_hosts(), which needs HOST* vars to be set.
# It does NOT call it. Each script calls detect_hosts() itself, so MY_ID and REMOTE_ID
# are unset until it does — anything building HOST*-prefixed variable names must come after.
if [[ ! -f "$LOAD_CONFIG_DIR/common.sh" ]]; then
echo "[FATAL] common.sh not found at $LOAD_CONFIG_DIR/common.sh" >&2
exit 1