Symlinking log_api.txt to /tmp (closes #7)
This commit is contained in:
parent
f7db98f93d
commit
1d57f0f321
10
start.sh
10
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"
|
||||
|
|
Loading…
Reference in New Issue