mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-19 12:56:01 +00:00
code refactoring
This commit is contained in:
@@ -123,15 +123,18 @@ function default_settings() {
|
||||
VERB="no"
|
||||
echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}"
|
||||
}
|
||||
|
||||
function advanced_settings() {
|
||||
var_version=$(whiptail --title "UBUNTU VERSION" --radiolist "Choose Version" 11 58 4 \
|
||||
if var_version=$(whiptail --title "UBUNTU VERSION" --radiolist "Choose Version" 10 58 4 \
|
||||
"18.04" "Bionic" OFF \
|
||||
"20.04" "Focal" ON \
|
||||
"22.04" "Jammy" OFF \
|
||||
"22.10" "Kinetic" OFF \
|
||||
3>&1 1>&2 2>&3)
|
||||
exitstatus=$?
|
||||
if [ $exitstatus = 0 ]; then echo -e "${DGN}Using Ubuntu Version: ${BGN}$var_version${CL}"; fi
|
||||
3>&1 1>&2 2>&3); then
|
||||
echo -e "${DGN}Using Ubuntu Version: ${BGN}$var_version${CL}"
|
||||
else
|
||||
exit-script
|
||||
fi
|
||||
CT_TYPE=$(whiptail --title "CONTAINER TYPE" --radiolist --cancel-button Exit-Script "Choose Type" 10 58 2 \
|
||||
"1" "Unprivileged" ON \
|
||||
"0" "Privileged" OFF \
|
||||
@@ -312,6 +315,7 @@ function advanced_settings() {
|
||||
advanced_settings
|
||||
fi
|
||||
}
|
||||
|
||||
function install_script() {
|
||||
ARCH_CHECK
|
||||
PVE_CHECK
|
||||
|
||||
Reference in New Issue
Block a user