Update homeassistant-v3.sh

This commit is contained in:
tteckster 2022-04-14 16:20:56 -04:00 committed by GitHub
parent c8b5a592f7
commit ca997e7ba8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@ GN=`echo "\033[32m"`
CL=`echo "\033[m"` CL=`echo "\033[m"`
APP="Home Assistant" APP="Home Assistant"
NSAPP=$(echo ${APP,,} | tr -d ' ') NSAPP=$(echo ${APP,,} | tr -d ' ')
PVE=$(pveversion | grep "pve-manager/7" | wc -l)
while true; do while true; do
read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn
case $yn in case $yn in
@ -33,14 +33,12 @@ ${CL}"
header_info header_info
function pve_7() { if [[ $PVE != 1 ]]; then
if [ `pveversion | grep "pve-manager/7" | wc -l` -ne 1 ]; then echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}"
echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater"
echo -e "Exiting..." echo -e "Exiting..."
sleep 2 sleep 2
exit exit
fi fi
}
function default_settings() { function default_settings() {
clear clear
@ -260,7 +258,7 @@ function start_script() {
advanced_settings advanced_settings
fi; fi;
} }
pve_7
start_script start_script
set -o errexit set -o errexit