This commit is contained in:
MacRimi 2025-02-25 18:17:24 +01:00
parent 92d6435dba
commit 3167302f99
5 changed files with 25 additions and 3 deletions

View File

@ -58,7 +58,7 @@ initialize_cache
OS_CODENAME="$(grep "VERSION_CODENAME=" /etc/os-release | cut -d"=" -f 2 | xargs )"
RAM_SIZE_GB=$(( $(vmstat -s | grep -i "total memory" | xargs | cut -d" " -f 1) / 1024 / 1000))
NECESSARY_REBOOT=0
SCRIPT_TITLE="Customizable script settings for post-installation of Proxmox"
SCRIPT_TITLE="Customizable post-installation optimization script"
# ==========================================================

View File

@ -26,6 +26,8 @@ initialize_cache
show_config_menu() {
cleanup
while true; do
OPTION=$(whiptail --title "$(translate "Configuration Menu")" --menu "$(translate "Select an option:")" 20 70 8 \
"1" "$(translate "Change Language")" \
@ -244,4 +246,7 @@ uninstall_proxmenu() {
}
if [[ "$LANGUAGE" != "en" ]]; then
msg_lang "$(translate "Generating automatic translations...")"
fi
show_config_menu

View File

@ -27,6 +27,7 @@ initialize_cache
show_menu() {
cleanup
while true; do
OPTION=$(whiptail --title "$(translate "Main Menu")" --menu "$(translate "Select an option:")" 20 70 8 \
"1" "$(translate "Settings post-install Proxmox")" \
@ -54,5 +55,8 @@ done
}
# Main flow
if [[ "$LANGUAGE" != "en" ]]; then
msg_lang "$(translate "Generating automatic translations...")"
fi
show_menu

View File

@ -96,6 +96,8 @@ show_menu() {
menu_items+=("$(translate "Return to Main Menu")" "")
cleanup
script_selection=$(whiptail --title "$(translate "Essential Proxmox VE Helper-Scripts")" \
--menu "\n$HEADER\n\n$(translate "Select a script to execute")" 25 78 16 \
"${menu_items[@]}" 3>&1 1>&2 2>&3)
@ -146,4 +148,8 @@ show_menu() {
done
}
if [[ "$LANGUAGE" != "en" ]]; then
msg_lang "$(translate "Generating automatic translations...")"
fi
show_menu

View File

@ -44,6 +44,8 @@ show_menu() {
menu_items+=("$(printf "%2d %-40s" "$((${#scripts[@]}+1))" "$(translate "Return to Main Menu")")" "")
cleanup
script_selection=$(whiptail --title "$(translate "Post-Installation Scripts Menu")" \
--menu "\n$HEADER" 20 78 $((${#scripts[@]}+1)) \
"${menu_items[@]}" 3>&1 1>&2 2>&3)
@ -67,4 +69,9 @@ show_menu() {
done
}
if [[ "$LANGUAGE" != "en" ]]; then
msg_lang "$(translate "Generating automatic translations...")"
fi
show_menu