mirror of
https://github.com/tschettervictor/bsd-apps.git
synced 2025-12-18 00:00:05 +01:00
Update vaultwarden-install.sh
This commit is contained in:
@@ -31,7 +31,7 @@ if [ "${REINSTALL}" == "true" ]; then
|
|||||||
echo "Admin token will not be changed on a reinstall."
|
echo "Admin token will not be changed on a reinstall."
|
||||||
echo "Consult the docs to manually change it if needed."
|
echo "Consult the docs to manually change it if needed."
|
||||||
else
|
else
|
||||||
ADMIN_HASH=$(echo -n ${ADMIN_TOKEN} | argon2 $(openssl rand -base64 32) -e -id -k 65540 -t 3 -p 4)
|
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
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user