1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-08-15 07:22:33 +00:00

Update start.sh

Permit the usage of a DATABASE_URL_PARAM_FILE variable, pointing to a file containing the actual DATABASE_URL.
This commit is contained in:
Denis Valdenaire 2024-01-22 12:16:42 +01:00 committed by GitHub
commit 4b740094c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,4 +22,9 @@ elif [ -d /etc/bitwarden_rs.d ]; then
done
fi
# if you define this variable in the docker-compose.yml, it will overload the current DATABASE_URL variable
if [ "$DATABASE_URL_PARAM_FILE" != "" ]; then
export DATABASE_URL=`cat $DATABASE_URL_PARAM_FILE`
fi
exec /vaultwarden "${@}"