Symlinking log_api.txt to /tmp (closes #7)

This commit is contained in:
Dennis Schwerdel 2017-06-01 10:46:06 +02:00
parent f7db98f93d
commit 1d57f0f321
1 changed files with 9 additions and 1 deletions

View File

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