move checks to function install_script() (#1045)
This commit is contained in:
@@ -322,6 +322,8 @@ function advanced_settings() {
|
||||
fi
|
||||
}
|
||||
function install_script() {
|
||||
ARCH_CHECK
|
||||
PVE_CHECK
|
||||
if (whiptail --title "SETTINGS" --yesno "Use Default Settings?" --no-button Advanced 10 58); then
|
||||
header_info
|
||||
echo -e "${BL}Using Default Settings${CL}"
|
||||
@@ -341,8 +343,6 @@ apt-get -y upgrade &>/dev/null
|
||||
msg_ok "Updated $APP LXC"
|
||||
exit
|
||||
}
|
||||
ARCH_CHECK
|
||||
PVE_CHECK
|
||||
header_info
|
||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
|
||||
if [ "$VERB" == "yes" ]; then set -x; fi
|
||||
|
||||
Reference in New Issue
Block a user