From cde33cf00e227a3625bde332fb92fc8442a5b415 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sat, 18 Mar 2023 20:34:33 -0400 Subject: [PATCH] Update alpine-adguard-v5.sh Tweak --- ct/alpine-adguard-v5.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/ct/alpine-adguard-v5.sh b/ct/alpine-adguard-v5.sh index a618d254..06819168 100644 --- a/ct/alpine-adguard-v5.sh +++ b/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