mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-08-14 23:12:30 +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:
parent
890e668071
commit
4b740094c1
1 changed files with 5 additions and 0 deletions
|
@ -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 "${@}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue