mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-08-14 00:42:23 +00:00
Update install_proxmenux.sh
This commit is contained in:
parent
104f3de013
commit
3cadfd08d8
@ -498,6 +498,8 @@ install_translation_version() {
|
|||||||
show_installation_options() {
|
show_installation_options() {
|
||||||
local current_install_type
|
local current_install_type
|
||||||
current_install_type=$(check_existing_installation)
|
current_install_type=$(check_existing_installation)
|
||||||
|
local pve_version
|
||||||
|
pve_version=$(pveversion 2>/dev/null | grep -oP 'pve-manager/\K[0-9]+' | head -1)
|
||||||
|
|
||||||
local menu_title="ProxMenux Installation"
|
local menu_title="ProxMenux Installation"
|
||||||
local menu_text="Choose installation type:"
|
local menu_text="Choose installation type:"
|
||||||
@ -516,10 +518,30 @@ show_installation_options() {
|
|||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if [[ "$pve_version" -ge 9 ]]; then
|
||||||
|
INSTALL_TYPE=$(whiptail --backtitle "ProxMenux" --title "$menu_title" --menu "\n$menu_text" 14 70 2 \
|
||||||
|
"1" "Normal Version (English only)" 3>&1 1>&2 2>&3)
|
||||||
|
|
||||||
|
if [ -z "$INSTALL_TYPE" ]; then
|
||||||
|
msg_warn "Installation cancelled."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
else
|
||||||
INSTALL_TYPE=$(whiptail --backtitle "ProxMenux" --title "$menu_title" --menu "\n$menu_text" 14 70 2 \
|
INSTALL_TYPE=$(whiptail --backtitle "ProxMenux" --title "$menu_title" --menu "\n$menu_text" 14 70 2 \
|
||||||
"1" "Normal Version (English only)" \
|
"1" "Normal Version (English only)" \
|
||||||
"2" "Translation Version (Multi-language support)" 3>&1 1>&2 2>&3)
|
"2" "Translation Version (Multi-language support)" 3>&1 1>&2 2>&3)
|
||||||
|
|
||||||
|
if [ -z "$INSTALL_TYPE" ]; then
|
||||||
|
msg_warn "Installation cancelled."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if [ -z "$INSTALL_TYPE" ]; then
|
if [ -z "$INSTALL_TYPE" ]; then
|
||||||
msg_warn "Installation cancelled."
|
msg_warn "Installation cancelled."
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user