code refactoring

This commit is contained in:
tteckster
2023-03-09 16:48:14 -05:00
committed by GitHub
parent de020b93af
commit 33f75e2b12
87 changed files with 13775 additions and 11319 deletions

View File

@@ -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