mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
add arch check (#981)
This commit is contained in:
parent
263c59944a
commit
e392cf9811
138 changed files with 1312 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue