From a4720801277a76b91f51fd4b535340330b8e9d49 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 10 Apr 2023 00:21:11 -0400 Subject: [PATCH] Update vaultwarden.sh tweak --- ct/vaultwarden.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/vaultwarden.sh b/ct/vaultwarden.sh index 74fb9f94..f74ef4fe 100644 --- a/ct/vaultwarden.sh +++ b/ct/vaultwarden.sh @@ -125,7 +125,7 @@ function update_script() { if [[ -z "$NEWTOKEN" ]]; then exit; fi if ! command -v argon2 >/dev/null 2>&1; then apt-get install -y argon2 &>/dev/null; fi TOKEN=$(echo -n ${NEWTOKEN} | argon2 "$(openssl rand -base64 32)" -t 2 -m 16 -p 4 -l 64 -e) - sed -i "s|ADMIN_TOKEN='.*'|ADMIN_TOKEN='${TOKEN}'|" /opt/vaultwarden/.env + sed -i "s|ADMIN_TOKEN=.*|ADMIN_TOKEN='${TOKEN}'|" /opt/vaultwarden/.env systemctl restart vaultwarden fi exit