mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-30 02:14:34 +01:00
Update homeassistant-core-v5.sh
add arch check
This commit is contained in:
parent
030c4927e7
commit
2a33c86cfb
@ -75,7 +75,14 @@ function PVE_CHECK() {
|
|||||||
exit
|
exit
|
||||||
fi
|
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 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
|
if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
|
||||||
NEXTID=$(pvesh get /cluster/nextid)
|
NEXTID=$(pvesh get /cluster/nextid)
|
||||||
@ -325,7 +332,6 @@ function advanced_settings() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function install_script() {
|
function install_script() {
|
||||||
ARCH_CHECK
|
|
||||||
if (whiptail --title "SETTINGS" --yesno "Use Default Settings?" --no-button Advanced 10 58); then
|
if (whiptail --title "SETTINGS" --yesno "Use Default Settings?" --no-button Advanced 10 58); then
|
||||||
header_info
|
header_info
|
||||||
echo -e "${BL}Using Default Settings${CL}"
|
echo -e "${BL}Using Default Settings${CL}"
|
||||||
@ -419,6 +425,7 @@ fi
|
|||||||
}
|
}
|
||||||
|
|
||||||
clear
|
clear
|
||||||
|
ARCH_CHECK
|
||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
|
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
|
||||||
if [ "$VERB" == "yes" ]; then set -x; fi
|
if [ "$VERB" == "yes" ]; then set -x; fi
|
||||||
if [ "$CT_TYPE" == "1" ]; then
|
if [ "$CT_TYPE" == "1" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user