omeka/docker-entrypoint.sh

17 lines
560 B
Bash
Raw Normal View History

#!/bin/bash
# CONFIGURE DATABASE
set -e;
if [[ -z "$MYSQL_USER" ]]; then MYSQL_USER="omeka"; fi
if [[ -z "$MYSQL_PASSWORD" ]]; then MYSQL_PASSWORD="omeka"; fi
if [[ -z "$MYSQL_DATABASE" ]]; then MYSQL_DATABASE="omeka"; fi
if [[ -z "$MYSQL_HOST" ]]; then MYSQL_HOST="db"; fi
printf 'user = "%s"\npassword = "%s"\ndbname = "%s"\nhost = "%s"\n' $MYSQL_USER $MYSQL_PASSWORD $MYSQL_DATABASE $MYSQL_HOST > /var/www/html/omeka-s/config/database.ini
2024-03-23 15:43:58 +01:00
## Config email: https://omeka.org/s/docs/user-manual/configuration/
## Create custom local.config.php
exec "$@"