فهرست منبع

Update alpine-docker-v5.sh

fix directory check
tteckster 2 سال پیش
والد
کامیت
32a1ccb59a
1فایلهای تغییر یافته به همراه6 افزوده شده و 6 حذف شده
  1. 6 6
      ct/alpine-docker-v5.sh

+ 6 - 6
ct/alpine-docker-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 [[ ! -d /etc/docker ]]; then
+    msg_error "No ${APP} Installation Found!"
+  else
+    update_script
+  fi
 fi
 
 if [ "$VERB" == "yes" ]; then set -x; fi