updage installer

This commit is contained in:
MacRimi
2026-07-13 22:03:25 +02:00
parent 362409e654
commit 1b623cd275
2 changed files with 22 additions and 16 deletions
+12 -9
View File
@@ -900,15 +900,18 @@ install_proxmenux() {
bash "$LOCAL_SCRIPTS/global/cleanup_gpu_hookscripts.sh" || true bash "$LOCAL_SCRIPTS/global/cleanup_gpu_hookscripts.sh" || true
fi fi
if [[ "${UPDATE_MODE:-0}" == "1" ]]; then # UPDATE_MODE used to `exec "$INSTALL_DIR/$MENU_SCRIPT"` here to
msg_ok "ProxMenux update complete — relaunching menu..." # auto-relaunch the freshly-installed menu. That produced visible
# Hand off to the freshly-installed menu binary. `exec` replaces # "line: syntax" errors when bash tried to read the just-rewritten
# this shell so nothing tries to keep parsing the install script # /usr/local/bin/menu (or a shared utils.sh sourced by it) under
# afterwards, and there is zero time window where any process # its feet. Fall through to the standard "installed successfully"
# could read a half-rewritten /usr/local/bin/menu (already # end-of-run message instead — the operator types `menu` when
# protected by the atomic mv above; this is belt-and-suspenders). # ready and the terminal is stable by then.
exec "$INSTALL_DIR/$MENU_SCRIPT" #
fi # `change_release_channel` in scripts/menus/config_menu.sh is
# unaffected: it invokes the installer without `--update`
# (UPDATE_MODE=0) so it never went through this branch, and its
# "return to config menu" behaviour is preserved.
msg_title "ProxMenux has been installed successfully" msg_title "ProxMenux has been installed successfully"
+10 -7
View File
@@ -811,13 +811,16 @@ if [ -x "$BASE_DIR/scripts/global/cleanup_gpu_hookscripts.sh" ]; then
bash "$BASE_DIR/scripts/global/cleanup_gpu_hookscripts.sh" || true bash "$BASE_DIR/scripts/global/cleanup_gpu_hookscripts.sh" || true
fi fi
# Update path: hand off to the freshly-installed menu instead of telling # UPDATE_MODE used to `exec "$INSTALL_DIR/$MENU_SCRIPT"` here to
# the operator to type `menu` again. See install_proxmenux.sh for the # auto-relaunch the freshly-installed menu. That produced visible
# full rationale — same fix here for the beta channel. # "line: syntax" errors when bash tried to read the just-rewritten
if [[ "$UPDATE_MODE" == "1" ]]; then # /usr/local/bin/menu (or a shared utils.sh sourced by it) under its
msg_ok "ProxMenux Beta update complete — relaunching menu..." # feet. Fall through to the standard end-of-run message instead —
exec "$INSTALL_DIR/$MENU_SCRIPT" # the operator types `menu` when ready and the terminal is stable.
fi #
# `change_release_channel` in scripts/menus/config_menu.sh is
# unaffected: it invokes the installer without `--update`
# (UPDATE_MODE=0) so it never went through this branch.
msg_title "ProxMenux Beta installed successfully" msg_title "ProxMenux Beta installed successfully"