Skip to content

Commit 8073221

Browse files
Updated config to dump logs on stdout and stderr.
1 parent 971ec51 commit 8073221

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

moodle/centos7/install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ rm -rf ${HTTPD_WELCOME};
5656
sed -i 's/^Listen 80/Listen 8080\\\nListen 8443/g' ${HTTPD_CONF};
5757
sed -i 's/^Listen 8080\\/Listen 8080/g' ${HTTPD_CONF};
5858
sed -i 's/^Group apache/Group root/g' ${HTTPD_CONF};
59+
sed -i 's/logs\/error_log/\/dev\/stderr/g' ${HTTPD_CONF};
60+
sed -i 's/logs\/access_log/\/dev\/stdout/g' ${HTTPD_CONF};
5961
mkdir -p /etc/httpd/logs && touch /etc/httpd/logs/error_log && touch /etc/httpd/logs/access_log;
6062

6163
# Fix the permissions

moodle/centos7/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if [ $1 == "moodle" ]; then
3333
s/localhost/${DB_HOST}/
3434
s/\/home\/example\/moodledata/\/var\/moodledata/" /var/www/html/config-dist.php > /var/www/html/config.php;
3535

36-
/usr/sbin/httpd && tail -f /var/log/httpd/*;
36+
exec /usr/sbin/httpd -DFOREGROUND;
3737
else
3838
exec $@
3939
fi

0 commit comments

Comments
 (0)