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:
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user