mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-17 19:16:25 +00:00
Update menu
This commit is contained in:
8
menu
8
menu
@@ -80,10 +80,16 @@ check_updates() {
|
|||||||
if curl "${CURL_OPTS[@]}" "$INSTALL_URL" -o "$INSTALL_SCRIPT"; then
|
if curl "${CURL_OPTS[@]}" "$INSTALL_URL" -o "$INSTALL_SCRIPT"; then
|
||||||
chmod +x "$INSTALL_SCRIPT"
|
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
|
else
|
||||||
msg_warn "$(translate 'Unable to download the installer. Please try again later.')"
|
msg_warn "$(translate 'Unable to download the installer. Please try again later.')"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
msg_warn "$(translate 'Update postponed. You can update later from the menu.')"
|
msg_warn "$(translate 'Update postponed. You can update later from the menu.')"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user