Commit cc6ba094 authored by Johannes Zellner's avatar Johannes Zellner

Create more required folders

parent 9861ea7e
......@@ -10,7 +10,6 @@ echo "==> Configure database"
sed -e "s/'connectionString' => '.*',/'connectionString' => 'mysql:host=${MYSQL_HOST};port=${MYSQL_PORT};dbname=${MYSQL_DATABASE};',/" \
-e "s/'username' => '.*',/'username' => '${MYSQL_USERNAME}',/" \
-e "s/'password' => '.*',/'password' => '${MYSQL_PASSWORD}',/" \
# -e "s/'debug'=>.*,/'debug'=>1,/" \
/app/code/application/config/config-sample-mysql.php > /run/config.php
if [[ -z "$(ls -A /app/data)" ]]; then
......@@ -19,7 +18,8 @@ if [[ -z "$(ls -A /app/data)" ]]; then
fi
echo "==> Ensure folders"
mkdir -p /app/data/upload
# It is not exactly clear why the app does not create those subfolders and we might miss some here
mkdir -p /app/data/upload /app/code/upload/admintheme /app/code/upload/themes/survey/generalfiles
echo "==> Ensure permissions"
chown -R www-data.www-data /app/data /run
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment