mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-28 04:06:54 +00:00
update
This commit is contained in:
parent
92d6435dba
commit
3167302f99
@ -58,7 +58,7 @@ initialize_cache
|
|||||||
OS_CODENAME="$(grep "VERSION_CODENAME=" /etc/os-release | cut -d"=" -f 2 | xargs )"
|
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))
|
RAM_SIZE_GB=$(( $(vmstat -s | grep -i "total memory" | xargs | cut -d" " -f 1) / 1024 / 1000))
|
||||||
NECESSARY_REBOOT=0
|
NECESSARY_REBOOT=0
|
||||||
SCRIPT_TITLE="Customizable script settings for post-installation of Proxmox"
|
SCRIPT_TITLE="Customizable post-installation optimization script"
|
||||||
|
|
||||||
# ==========================================================
|
# ==========================================================
|
||||||
|
|
||||||
|
@ -26,6 +26,8 @@ initialize_cache
|
|||||||
|
|
||||||
|
|
||||||
show_config_menu() {
|
show_config_menu() {
|
||||||
|
|
||||||
|
cleanup
|
||||||
while true; do
|
while true; do
|
||||||
OPTION=$(whiptail --title "$(translate "Configuration Menu")" --menu "$(translate "Select an option:")" 20 70 8 \
|
OPTION=$(whiptail --title "$(translate "Configuration Menu")" --menu "$(translate "Select an option:")" 20 70 8 \
|
||||||
"1" "$(translate "Change Language")" \
|
"1" "$(translate "Change Language")" \
|
||||||
@ -244,4 +246,7 @@ uninstall_proxmenu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if [[ "$LANGUAGE" != "en" ]]; then
|
||||||
|
msg_lang "$(translate "Generating automatic translations...")"
|
||||||
|
fi
|
||||||
show_config_menu
|
show_config_menu
|
||||||
|
@ -27,6 +27,7 @@ initialize_cache
|
|||||||
|
|
||||||
|
|
||||||
show_menu() {
|
show_menu() {
|
||||||
|
cleanup
|
||||||
while true; do
|
while true; do
|
||||||
OPTION=$(whiptail --title "$(translate "Main Menu")" --menu "$(translate "Select an option:")" 20 70 8 \
|
OPTION=$(whiptail --title "$(translate "Main Menu")" --menu "$(translate "Select an option:")" 20 70 8 \
|
||||||
"1" "$(translate "Settings post-install Proxmox")" \
|
"1" "$(translate "Settings post-install Proxmox")" \
|
||||||
@ -54,5 +55,8 @@ done
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Main flow
|
# Main flow
|
||||||
|
if [[ "$LANGUAGE" != "en" ]]; then
|
||||||
|
msg_lang "$(translate "Generating automatic translations...")"
|
||||||
|
fi
|
||||||
show_menu
|
show_menu
|
||||||
|
|
||||||
|
@ -95,7 +95,9 @@ show_menu() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
menu_items+=("$(translate "Return to Main Menu")" "")
|
menu_items+=("$(translate "Return to Main Menu")" "")
|
||||||
|
|
||||||
|
cleanup
|
||||||
|
|
||||||
script_selection=$(whiptail --title "$(translate "Essential Proxmox VE Helper-Scripts")" \
|
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 "\n$HEADER\n\n$(translate "Select a script to execute")" 25 78 16 \
|
||||||
"${menu_items[@]}" 3>&1 1>&2 2>&3)
|
"${menu_items[@]}" 3>&1 1>&2 2>&3)
|
||||||
@ -146,4 +148,8 @@ show_menu() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if [[ "$LANGUAGE" != "en" ]]; then
|
||||||
|
msg_lang "$(translate "Generating automatic translations...")"
|
||||||
|
fi
|
||||||
show_menu
|
show_menu
|
||||||
|
@ -43,7 +43,9 @@ show_menu() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
menu_items+=("$(printf "%2d %-40s" "$((${#scripts[@]}+1))" "$(translate "Return to Main Menu")")" "")
|
menu_items+=("$(printf "%2d %-40s" "$((${#scripts[@]}+1))" "$(translate "Return to Main Menu")")" "")
|
||||||
|
|
||||||
|
cleanup
|
||||||
|
|
||||||
script_selection=$(whiptail --title "$(translate "Post-Installation Scripts Menu")" \
|
script_selection=$(whiptail --title "$(translate "Post-Installation Scripts Menu")" \
|
||||||
--menu "\n$HEADER" 20 78 $((${#scripts[@]}+1)) \
|
--menu "\n$HEADER" 20 78 $((${#scripts[@]}+1)) \
|
||||||
"${menu_items[@]}" 3>&1 1>&2 2>&3)
|
"${menu_items[@]}" 3>&1 1>&2 2>&3)
|
||||||
@ -67,4 +69,9 @@ show_menu() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if [[ "$LANGUAGE" != "en" ]]; then
|
||||||
|
msg_lang "$(translate "Generating automatic translations...")"
|
||||||
|
fi
|
||||||
|
|
||||||
show_menu
|
show_menu
|
Loading…
x
Reference in New Issue
Block a user