浏览代码

Update homeassistant-v3.sh

tteckster 3 年之前
父节点
当前提交
9d6186d4e9
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      ct/homeassistant-v3.sh

+ 2 - 1
ct/homeassistant-v3.sh

@@ -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
@@ -34,6 +34,7 @@ ${CL}"
 header_info
 header_info
 
 
 function PVE_CHECK() {
 function PVE_CHECK() {
+PVE=$(pveversion | grep "pve-manager/7" | wc -l)
 if [[ $PVE != 1 ]]; then
 if [[ $PVE != 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${CL}"
         echo -e "Exiting..."
         echo -e "Exiting..."