Update vaultwarden-v5.sh

revert "remove update redirects"
This commit is contained in:
tteckster 2023-01-03 12:34:19 -05:00 committed by GitHub
parent 7f910107d3
commit 8c9b48f15c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -331,9 +331,9 @@ msg_ok "Stopped Vaultwarden"
msg_info "Updating VaultWarden to $VAULT (Patience)" msg_info "Updating VaultWarden to $VAULT (Patience)"
cd ~ && rm -rf vaultwarden cd ~ && rm -rf vaultwarden
git clone https://github.com/dani-garcia/vaultwarden git clone https://github.com/dani-garcia/vaultwarden &>/dev/null
cd vaultwarden cd vaultwarden
cargo build --features "sqlite,mysql,postgresql" --release cargo build --features "sqlite,mysql,postgresql" --release &>/dev/null
DIR=/usr/bin/vaultwarden DIR=/usr/bin/vaultwarden
if [ -d "$DIR" ]; then if [ -d "$DIR" ]; then
cp target/release/vaultwarden /usr/bin/ cp target/release/vaultwarden /usr/bin/