Fix Printf Docker Entrypoint to /usr/local/bin

master
Siroco 2 years ago
parent a87904a8cf
commit d3aea60802
Signed by: siroco
GPG Key ID: 1324098302A514B0
  1. 2
      docker-entrypoint.sh

@ -8,6 +8,6 @@ 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 > database.ini
printf 'user = "%s"\npassword = "%s"\ndbname = "%s"\nhost = "%s"\n' $MYSQL_USER $MYSQL_PASSWORD $MYSQL_DATABASE $MYSQL_HOST > /sindominio/omeka-s/config/database.ini
exec "$@"

Loading…
Cancel
Save