fixes Known env variable with config.ini

This commit is contained in:
pierreozoux 2015-01-12 23:17:56 +01:00
parent 17d621da4e
commit 9239ff7f5b

View file

@ -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