Update vaultwarden-v5.sh
fix for older installs
This commit is contained in:
parent
83252cbfa3
commit
5765b0c800
1 changed files with 6 additions and 1 deletions
|
@ -376,7 +376,12 @@ msg_ok "$WVRELEASE Update Successful"
|
||||||
exit;
|
exit;
|
||||||
fi
|
fi
|
||||||
if [ "$UPD" == "3" ]; then
|
if [ "$UPD" == "3" ]; then
|
||||||
|
DIR=/usr/bin/vaultwarden
|
||||||
|
if [ -d "$DIR" ]; then
|
||||||
|
cat /usr/bin/vaultwarden/.env | grep "ADMIN_TOKEN"
|
||||||
|
else
|
||||||
cat /opt/vaultwarden/.env | grep "ADMIN_TOKEN"
|
cat /opt/vaultwarden/.env | grep "ADMIN_TOKEN"
|
||||||
|
fi
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue