Point the WebGUI symlink at the actual install, and report this host's identity rather than HOST1's
The .plg hardcoded the flash path and runs every boot, so an appdata node served a stale copy that never receives pulls — fixes appeared to do nothing, indefinitely.
This commit is contained in:
@@ -395,6 +395,24 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
# ── Repoint the WebGUI at the new location ────────────────────────────────────
|
||||
# The .plg rebuilds this symlink on every boot and now follows SCRIPTS_DIR, but a migration is
|
||||
# not a boot. Without this the WebGUI keeps serving the old copy until the next restart, so a
|
||||
# migration appears to work while every page, endpoint and pull-target is still the old tree.
|
||||
WEB_DIR="/usr/local/emhttp/plugins/varaverk"
|
||||
if [[ "$DRY_RUN" == true ]]; then
|
||||
warn "DRY RUN — would repoint $WEB_DIR → $DST/Plugin/unraid"
|
||||
elif [[ -d "$DST/Plugin/unraid" ]]; then
|
||||
ln -sfn "$DST/Plugin/unraid" "$WEB_DIR"
|
||||
if [[ "$(readlink -f "$WEB_DIR")" == "$(readlink -f "$DST/Plugin/unraid")" ]]; then
|
||||
echo "WebGUI repointed → $DST/Plugin/unraid ✅"
|
||||
else
|
||||
warn "Could not repoint $WEB_DIR — the WebGUI will keep serving the old tree until reboot"
|
||||
fi
|
||||
else
|
||||
warn "$DST/Plugin/unraid missing — WebGUI left pointing at the old tree"
|
||||
fi
|
||||
|
||||
# ──────────────────────────────────────────────────────────────────────────────
|
||||
echo ""
|
||||
echo "━━━━━ $ICON_DONE Migration complete ━━━━━"
|
||||
|
||||
Reference in New Issue
Block a user