add arch check (#981)

This commit is contained in:
tteckster 2023-01-25 08:14:42 -05:00 committed by GitHub
parent 263c59944a
commit e392cf9811
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
138 changed files with 1312 additions and 0 deletions

View file

@ -72,6 +72,15 @@ function PVE_CHECK() {
exit
fi
}
function ARCH_CHECK() {
ARCH=$(dpkg --print-architecture)
if [[ "$ARCH" != "amd64" ]]; then
echo -e "\n ❌ This script will not work with PiMox! \n"
echo -e "Exiting..."
sleep 2
exit
fi
}
if command -v pveversion >/dev/null 2>&1; then
if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
@ -333,6 +342,7 @@ msg_ok "Update Successfull"
exit
}
clear
ARCH_CHECK
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
if [ "$VERB" == "yes" ]; then set -x; fi
if [ "$CT_TYPE" == "1" ]; then