mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-07-04 06:36:52 +00:00
update script iso creator
This commit is contained in:
parent
f4c0211cba
commit
dddd12a036
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# ==========================================================
|
# ==========================================================
|
||||||
# ProxMenu - A menu-driven script for Proxmox VE management
|
# ProxMenux - A menu-driven script for Proxmox VE management
|
||||||
# ==========================================================
|
# ==========================================================
|
||||||
# Author : MacRimi
|
# Author : MacRimi
|
||||||
# Copyright : (c) 2024 MacRimi
|
# Copyright : (c) 2024 MacRimi
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# ==========================================================
|
# ==========================================================
|
||||||
# ProxMenu - A menu-driven script for Proxmox VE management
|
# ProxMenux - A menu-driven script for Proxmox VE management
|
||||||
# ==========================================================
|
# ==========================================================
|
||||||
# Author : MacRimi
|
# Author : MacRimi
|
||||||
# Copyright : (c) 2024 MacRimi
|
# Copyright : (c) 2024 MacRimi
|
||||||
@ -121,7 +121,7 @@ install_system_utils() {
|
|||||||
|
|
||||||
show_main_utilities_menu() {
|
show_main_utilities_menu() {
|
||||||
local choice
|
local choice
|
||||||
choice=$(dialog --clear --backtitle "ProxMenu - $(translate "System Utilities Installer")" \
|
choice=$(dialog --clear --backtitle "ProxMenux" \
|
||||||
--title "$(translate "Utilities Installation Menu")" \
|
--title "$(translate "Utilities Installation Menu")" \
|
||||||
--menu "$(translate "Select an option"):" 20 70 12 \
|
--menu "$(translate "Select an option"):" 20 70 12 \
|
||||||
"1" "$(translate "Custom selection")" \
|
"1" "$(translate "Custom selection")" \
|
||||||
@ -167,7 +167,7 @@ install_system_utils() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
local selected
|
local selected
|
||||||
selected=$(dialog --clear --backtitle "ProxMenu - $(translate "Custom Utility Selection")" \
|
selected=$(dialog --clear --backtitle "ProxMenux" \
|
||||||
--title "$(translate "Select utilities to install")" \
|
--title "$(translate "Select utilities to install")" \
|
||||||
--checklist "$(translate "Use SPACE to select/deselect, ENTER to confirm")" \
|
--checklist "$(translate "Use SPACE to select/deselect, ENTER to confirm")" \
|
||||||
25 80 20 "${utilities[@]}" 2>&1 >/dev/tty)
|
25 80 20 "${utilities[@]}" 2>&1 >/dev/tty)
|
||||||
@ -222,7 +222,7 @@ install_system_utils() {
|
|||||||
[ $warning -gt 0 ] && msg_warn "$(translate "With warnings"): $warning"
|
[ $warning -gt 0 ] && msg_warn "$(translate "With warnings"): $warning"
|
||||||
[ $failed -gt 0 ] && msg_error "$(translate "Failed"): $failed"
|
[ $failed -gt 0 ] && msg_error "$(translate "Failed"): $failed"
|
||||||
|
|
||||||
dialog --clear --backtitle "ProxMenu" \
|
dialog --clear --backtitle "ProxMenux" \
|
||||||
--title "$(translate "Installation Complete")" \
|
--title "$(translate "Installation Complete")" \
|
||||||
--msgbox "$(translate "Group"): $group_name\n$(translate "Successful"): $success\n$(translate "With warnings"): $warning\n$(translate "Failed"): $failed" 10 50
|
--msgbox "$(translate "Group"): $group_name\n$(translate "Successful"): $success\n$(translate "With warnings"): $warning\n$(translate "Failed"): $failed" 10 50
|
||||||
}
|
}
|
||||||
@ -232,7 +232,7 @@ install_system_utils() {
|
|||||||
local selected="$1"
|
local selected="$1"
|
||||||
|
|
||||||
if [ -z "$selected" ]; then
|
if [ -z "$selected" ]; then
|
||||||
dialog --clear --backtitle "ProxMenu" \
|
dialog --clear --backtitle "ProxMenux" \
|
||||||
--title "$(translate "No Selection")" \
|
--title "$(translate "No Selection")" \
|
||||||
--msgbox "$(translate "No utilities were selected")" 8 40
|
--msgbox "$(translate "No utilities were selected")" 8 40
|
||||||
return
|
return
|
||||||
@ -290,7 +290,7 @@ install_system_utils() {
|
|||||||
[ $warning -gt 0 ] && msg_warn "$(translate "With warnings"): $warning"
|
[ $warning -gt 0 ] && msg_warn "$(translate "With warnings"): $warning"
|
||||||
[ $failed -gt 0 ] && msg_error "$(translate "Failed"): $failed"
|
[ $failed -gt 0 ] && msg_error "$(translate "Failed"): $failed"
|
||||||
|
|
||||||
dialog --clear --backtitle "ProxMenu" \
|
dialog --clear --backtitle "ProxMenux" \
|
||||||
--title "$(translate "Installation Complete")" \
|
--title "$(translate "Installation Complete")" \
|
||||||
--msgbox "$(translate "Selected utilities installation completed")\n$(translate "Successful"): $success\n$(translate "With warnings"): $warning\n$(translate "Failed"): $failed" 12 60
|
--msgbox "$(translate "Selected utilities installation completed")\n$(translate "Successful"): $success\n$(translate "With warnings"): $warning\n$(translate "Failed"): $failed" 12 60
|
||||||
}
|
}
|
||||||
@ -347,7 +347,7 @@ install_system_utils() {
|
|||||||
|
|
||||||
local summary="$(translate "Total"): $((available + missing))\n$(translate "Available"): $available\n$(translate "Missing"): $missing"
|
local summary="$(translate "Total"): $((available + missing))\n$(translate "Available"): $available\n$(translate "Missing"): $missing"
|
||||||
|
|
||||||
dialog --clear --backtitle "ProxMenu" \
|
dialog --clear --backtitle "ProxMenux" \
|
||||||
--title "$(translate "Utilities Verification")" \
|
--title "$(translate "Utilities Verification")" \
|
||||||
--msgbox "$summary$status_text" 25 80
|
--msgbox "$summary$status_text" 25 80
|
||||||
}
|
}
|
||||||
@ -456,7 +456,7 @@ install_system_utils() {
|
|||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
dialog --clear --backtitle "ProxMenu" \
|
dialog --clear --backtitle "ProxMenux" \
|
||||||
--title "$(translate "Invalid Option")" \
|
--title "$(translate "Invalid Option")" \
|
||||||
--msgbox "$(translate "Please select a valid option")" 8 40
|
--msgbox "$(translate "Please select a valid option")" 8 40
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user