浏览代码

Update homeassistant-v3.sh

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

+ 3 - 0
ct/homeassistant-v3.sh

@@ -33,12 +33,14 @@ ${CL}"
 
 header_info
 
+function PVE_CHECK() {
 if [[ $PVE != 1 ]]; then
         echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}"
         echo -e "Exiting..."
         sleep 2
         exit
 fi
+}
 
 function default_settings() {
                 clear
@@ -259,6 +261,7 @@ function start_script() {
 		fi;
 }
 
+PVE_CHECK
 start_script
 
 set -o errexit