File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,8 @@ rm -rf ${HTTPD_WELCOME};
5656sed -i ' s/^Listen 80/Listen 8080\\\nListen 8443/g' ${HTTPD_CONF} ;
5757sed -i ' s/^Listen 8080\\/Listen 8080/g' ${HTTPD_CONF} ;
5858sed -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} ;
5961mkdir -p /etc/httpd/logs && touch /etc/httpd/logs/error_log && touch /etc/httpd/logs/access_log;
6062
6163# Fix the permissions
Original file line number Diff line number Diff 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 ;
3737else
3838 exec $@
3939fi
You can’t perform that action at this time.
0 commit comments