From 26ea0feddbf0ecdfe2fe1f37415876d1a149d7a7 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Sat, 15 Nov 2025 23:46:02 +0100 Subject: [PATCH] Update menu --- menu | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/menu b/menu index 763afdd..284f925 100644 --- a/menu +++ b/menu @@ -80,10 +80,16 @@ check_updates() { if curl "${CURL_OPTS[@]}" "$INSTALL_URL" -o "$INSTALL_SCRIPT"; then chmod +x "$INSTALL_SCRIPT" - source "$INSTALL_SCRIPT" + + if bash "$INSTALL_SCRIPT" --update >/tmp/proxmenux-install.log 2>&1; then + exec "$0" + else + return 0 + fi else msg_warn "$(translate 'Unable to download the installer. Please try again later.')" fi + else msg_warn "$(translate 'Update postponed. You can update later from the menu.')" fi