浏览代码

Update alpine-zigbee2mqtt-v5.sh

Tweak
tteckster 2 年之前
父节点
当前提交
54259a84c1
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      ct/alpine-zigbee2mqtt-v5.sh

+ 6 - 6
ct/alpine-zigbee2mqtt-v5.sh

@@ -396,12 +396,12 @@ if command -v pveversion >/dev/null 2>&1; then
   install_script
 fi
 
-if ! command -v pveversion >/dev/null 2>&1 && [[ ! -f /etc/zigbee2mqtt/configuration.yaml ]]; then
-  msg_error "No ${APP} Installation Found!"
-fi
-
-if ! command -v pveversion >/dev/null 2>&1 && [[ -f /etc/zigbee2mqtt/configuration.yaml ]]; then
-  update_script  
+if ! command -v pveversion >/dev/null 2>&1; then
+  if [[ ! -f /etc/zigbee2mqtt/configuration.yaml ]]; then
+    msg_error "No ${APP} Installation Found!"
+  else
+    update_script
+  fi
 fi
 
 if [ "$VERB" == "yes" ]; then set -x; fi