mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-11-06 11:22:49 +00:00
move checks to function install_script() (#1045)
This commit is contained in:
@@ -326,6 +326,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}"
|
||||
@@ -346,8 +348,6 @@ msg_ok "Updated ${APP} LXC"
|
||||
msg_ok "Update Successfull"
|
||||
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