From 5765b0c800a32254e4fbc441ced7c0158554cfb6 Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 5 Jan 2023 13:30:21 -0500 Subject: [PATCH] Update vaultwarden-v5.sh fix for older installs --- ct/vaultwarden-v5.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ct/vaultwarden-v5.sh b/ct/vaultwarden-v5.sh index c2695c4a..c16b0a8b 100644 --- a/ct/vaultwarden-v5.sh +++ b/ct/vaultwarden-v5.sh @@ -376,7 +376,12 @@ msg_ok "$WVRELEASE Update Successful" exit; fi if [ "$UPD" == "3" ]; then -cat /opt/vaultwarden/.env | grep "ADMIN_TOKEN" +DIR=/usr/bin/vaultwarden + if [ -d "$DIR" ]; then + cat /usr/bin/vaultwarden/.env | grep "ADMIN_TOKEN" + else + cat /opt/vaultwarden/.env | grep "ADMIN_TOKEN" + fi exit fi }