Update vaultwarden-install.sh

This commit is contained in:
tschettervictor
2024-09-14 16:35:18 -06:00
committed by GitHub
parent 92bad1a965
commit 6ad80de40f

View File

@@ -32,7 +32,7 @@ if [ "${REINSTALL}" == "true" ]; then
echo "Consult the docs to manually change it if needed."
else
ADMIN_HASH=$(echo -n ${ADMIN_TOKEN} | argon2 "$(openssl rand -base64 32)" -e -id -k 65540 -t 3 -p 4 | sed 's#\$#\$\$#g')
sed -i '' "s|youradmintokenhere|${ADMIN_HASH}|" /usr/local/etc/rc.conf.d/vaultwarden
sed -i '' "s|youradmintokenhere|'${ADMIN_HASH}'|" /usr/local/etc/rc.conf.d/vaultwarden
fi
# Enable and Start Services