Skip to content
Snippets Groups Projects
Commit 9239ff7f authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

fixes Known env variable with config.ini

parent 17d621da
No related branches found
No related tags found
No related merge requests found
#!/bin/bash #!/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 # Initialization after docker mount
if [ ! -s /app/.htaccess ]; then if [ ! -s /app/.htaccess ]; then
cat /app/htaccess.dist > /app/.htaccess cat /app/htaccess.dist > /app/.htaccess
...@@ -74,5 +65,14 @@ else ...@@ -74,5 +65,14 @@ else
exit $DB_CONNECTABLE exit $DB_CONNECTABLE
fi 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 exec /run.sh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment