From ec8fe397125b26ad538a7f5adfbc5c45d72b7025 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sat, 18 Mar 2023 20:28:21 -0400 Subject: [PATCH] Update alpine-vaultwarden-v5.sh Tweak --- ct/alpine-vaultwarden-v5.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/ct/alpine-vaultwarden-v5.sh b/ct/alpine-vaultwarden-v5.sh index 7d62d2e9..2123918d 100644 --- a/ct/alpine-vaultwarden-v5.sh +++ b/ct/alpine-vaultwarden-v5.sh @@ -404,13 +404,12 @@ if command -v pveversion >/dev/null 2>&1; then install_script fi -if ! command -v pveversion >/dev/null 2>&1 && [[ ! -f /etc/conf.d/vaultwarden ]]; then - msg_error "No ${APP} Installation Found!" -fi - -if ! command -v pveversion >/dev/null 2>&1 && [[ -f /etc/conf.d/vaultwarden ]]; then - update_script -fi +if ! command -v pveversion >/dev/null 2>&1; then + if [[ ! -f /etc/conf.d/vaultwarden ]]; then + msg_error "No ${APP} Installation Found!" + else + update_script + fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then