update menu

This commit is contained in:
MacRimi 2025-07-09 20:46:24 +02:00
parent 25b83cb86e
commit 8cbcd74f1a
2 changed files with 2 additions and 10 deletions

9
menu
View File

@ -82,18 +82,11 @@ check_updates() {
main_menu() {
if ! bash <(curl -fsSL "$REPO_URL/scripts/menus/main_menu.sh"); then
echo
msg_warn "$(translate 'Launching Emergency Repair Tool...')"
sleep 2
bash /usr/local/share/proxmenux/emergency_repair.sh
exit 0
fi
exec bash <(curl -fsSL "$REPO_URL/scripts/menus/main_menu.sh")
}
load_language
initialize_cache
check_updates
main_menu

View File

@ -38,7 +38,6 @@ backup_network_config() {
local timestamp=$(date +"%Y-%m-%d_%H-%M-%S")
local backup_file="$BACKUP_DIR/interfaces_backup_$timestamp"
cp /etc/network/interfaces "$backup_file"
msg_ok "$(translate "Network configuration backed up")"
echo "$backup_file"
}
@ -923,7 +922,7 @@ show_main_menu() {
"6" "$(translate "Show Network Config File")" \
"7" "$(translate "Emergency Proxmox System Repair")" \
"8" "$(translate "Restore Network Backup")" \
"0" "$(translate "Return to Main Menu")" \
"0" "$(translate "Exit")" \
3>&1 1>&2 2>&3)
case $selection in