diff --git a/start.sh b/start.sh index 5c9b8b5..6f3b4d7 100755 --- a/start.sh +++ b/start.sh @@ -19,6 +19,14 @@ if ! [ -f /app/data/.installed ]; then echo "Done." fi + +echo "Symlinking log file" +rm -f /app/data/users/_/log_api.txt +touch /tmp/log_api.txt +ln -s /tmp/log_api.txt /app/data/users/_/log_api.txt + + +echo "Symlinking packaged extensions" mkdir -p /app/data/extensions for f in $(ls /app/code/extensions-orig); do if ! [ -e "/app/data/extensions/$f" ]; then @@ -36,7 +44,7 @@ php cli/reconfigure.php --default_user admin --base_url "https://${APP_DOMAIN}/p echo "Setting permissions" -chown -R www-data.www-data /run/php /app/data +chown -R www-data.www-data /run/php /app/data /tmp/log_api.txt echo "Starting apache"