Browse Source

Update start.sh

Permit the usage of a DATABASE_URL_PARAM_FILE variable, pointing to a file containing the actual DATABASE_URL.
pull/4267/head
Denis Valdenaire 2 years ago
committed by GitHub
parent
commit
4b740094c1
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 5
      docker/start.sh

5
docker/start.sh

@ -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…
Cancel
Save