mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-07-06 22:17:37 +00:00
add arch check (#981)
This commit is contained in:
@ -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
|
||||
NEXTID=$(pvesh get /cluster/nextid)
|
||||
@ -339,6 +348,7 @@ msg_ok "Updated ${APP} LXC"
|
||||
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 [ "$FUSE" == "yes" ]; then
|
||||
|
Reference in New Issue
Block a user