mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-07-15 12:06:52 +00:00
update menu
This commit is contained in:
parent
25b83cb86e
commit
8cbcd74f1a
9
menu
9
menu
@ -82,18 +82,11 @@ check_updates() {
|
|||||||
|
|
||||||
|
|
||||||
main_menu() {
|
main_menu() {
|
||||||
if ! bash <(curl -fsSL "$REPO_URL/scripts/menus/main_menu.sh"); then
|
exec bash <(curl -fsSL "$REPO_URL/scripts/menus/main_menu.sh")
|
||||||
echo
|
|
||||||
msg_warn "$(translate 'Launching Emergency Repair Tool...')"
|
|
||||||
sleep 2
|
|
||||||
bash /usr/local/share/proxmenux/emergency_repair.sh
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
load_language
|
load_language
|
||||||
initialize_cache
|
initialize_cache
|
||||||
check_updates
|
check_updates
|
||||||
|
|
||||||
main_menu
|
main_menu
|
||||||
|
@ -38,7 +38,6 @@ backup_network_config() {
|
|||||||
local timestamp=$(date +"%Y-%m-%d_%H-%M-%S")
|
local timestamp=$(date +"%Y-%m-%d_%H-%M-%S")
|
||||||
local backup_file="$BACKUP_DIR/interfaces_backup_$timestamp"
|
local backup_file="$BACKUP_DIR/interfaces_backup_$timestamp"
|
||||||
cp /etc/network/interfaces "$backup_file"
|
cp /etc/network/interfaces "$backup_file"
|
||||||
msg_ok "$(translate "Network configuration backed up")"
|
|
||||||
echo "$backup_file"
|
echo "$backup_file"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -923,7 +922,7 @@ show_main_menu() {
|
|||||||
"6" "$(translate "Show Network Config File")" \
|
"6" "$(translate "Show Network Config File")" \
|
||||||
"7" "$(translate "Emergency Proxmox System Repair")" \
|
"7" "$(translate "Emergency Proxmox System Repair")" \
|
||||||
"8" "$(translate "Restore Network Backup")" \
|
"8" "$(translate "Restore Network Backup")" \
|
||||||
"0" "$(translate "Return to Main Menu")" \
|
"0" "$(translate "Exit")" \
|
||||||
3>&1 1>&2 2>&3)
|
3>&1 1>&2 2>&3)
|
||||||
|
|
||||||
case $selection in
|
case $selection in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user