mirror of
https://github.com/tschettervictor/bsd-apps.git
synced 2026-01-02 18:58:17 +01:00
Update vaultwarden-install.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user