소스 검색

Update alpine-adguard-v5.sh

Tweak
tteckster 2 년 전
부모
커밋
cde33cf00e
1개의 변경된 파일5개의 추가작업 그리고 6개의 파일을 삭제
  1. 5 6
      ct/alpine-adguard-v5.sh

+ 5 - 6
ct/alpine-adguard-v5.sh

@@ -435,13 +435,12 @@ if command -v pveversion >/dev/null 2>&1; then
   install_script
 fi
 
-if ! command -v pveversion >/dev/null 2>&1 && [[ ! -f /opt/AdGuardHome ]]; then
-  msg_error "No ${APP} Installation Found!"
-fi
-
 if ! command -v pveversion >/dev/null 2>&1; then
-  update_script
-fi
+  if [[ ! -d /opt/AdGuardHome ]]; then
+    msg_error "No ${APP} Installation Found!"
+  else
+    update_script
+  fi
 
 if [ "$VERB" == "yes" ]; then set -x; fi
 if [ "$CT_TYPE" == "1" ]; then