From 9239ff7f5b7c9c7d2b6cf68d41dd88eebe728e69 Mon Sep 17 00:00:00 2001 From: pierreozoux Date: Mon, 12 Jan 2015 23:17:56 +0100 Subject: [PATCH] fixes Known env variable with config.ini --- dockerfiles/services/known/run-known.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/dockerfiles/services/known/run-known.sh b/dockerfiles/services/known/run-known.sh index 002ddea..aa3bdfc 100644 --- a/dockerfiles/services/known/run-known.sh +++ b/dockerfiles/services/known/run-known.sh @@ -1,14 +1,5 @@ #!/bin/bash -# Environment creation -KNOWN_DATABASE="MySQL" -KNOWN_DBNAME="${DB_NAME}" -KNOWN_DBUSER="${DB_USER}" -KNOWN_DBPASS="${DB_PASS}" -KNOWN_DBHOST="${DB_HOST}" -KNOWN_FILESYSTEM="local" -KNOWM_UPLOADPATH="/uploads/" - # Initialization after docker mount if [ ! -s /app/.htaccess ]; then cat /app/htaccess.dist > /app/.htaccess @@ -74,5 +65,14 @@ else exit $DB_CONNECTABLE fi +# Environment creation +echo "filesystem = 'local'" > /app/config.ini +echo "uploadpath = '/app/Uploads'" >> /app/config.ini +echo "database = 'MySQL'" >> /app/config.ini +echo "dbname = '${DB_NAME}'" >> /app/config.ini +echo "dbhost = '${DB_HOST}'" >> /app/config.ini +echo "dbuser = '${DB_USER}'" >> /app/config.ini +echo "dbpass = '${DB_PASS}'" >> /app/config.ini + exec /run.sh