updates
This commit is contained in:
parent
cd675c8f71
commit
ca80c233b2
|
|
@ -42,10 +42,6 @@ RUN apk add --no-cache \
|
|||
vim \
|
||||
shadow
|
||||
|
||||
# syslog option '-Z' was changed to '-t', change this in /etc/conf.d/syslog so that syslog (and then cron) actually starts
|
||||
# https://gitlab.alpinelinux.org/alpine/aports/-/issues/9279
|
||||
RUN sed -i 's/SYSLOGD_OPTS="-Z"/SYSLOGD_OPTS="-t"/g' /etc/conf.d/syslog
|
||||
|
||||
# Configure to use php fpm and don't use /var/www to store everything (modules and logs)
|
||||
RUN \
|
||||
# Disable mpm_prefork
|
||||
|
|
|
|||
8
run.sh
8
run.sh
|
|
@ -1,10 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
# syslog option '-Z' was changed to '-t', change this in /etc/conf.d/syslog so that syslog (and then cron) actually starts
|
||||
# https://gitlab.alpinelinux.org/alpine/aports/-/issues/9279
|
||||
exec sed -i 's/SYSLOGD_OPTS="-Z"/SYSLOGD_OPTS="-t"/g' /etc/conf.d/syslog
|
||||
|
||||
# Create cron job for Grav maintenance scripts
|
||||
(crontab -l; echo "* * * * * cd /var/www/html;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1") | crontab -
|
||||
# Cron requires that each entry in a crontab end in a newline character. If the last entry in a crontab is missing the newline, cron will consider the crontab (at least partially) broken and refuse to install it.
|
||||
(crontab -l; echo "") | crontab -
|
||||
|
||||
# syslog option '-Z' was changed to '-t', change this in /etc/conf.d/syslog so that syslog (and then cron) actually starts
|
||||
# https://gitlab.alpinelinux.org/alpine/aports/-/issues/9279
|
||||
RUN sed -i 's/SYSLOGD_OPTS="-Z"/SYSLOGD_OPTS="-t"/g' /etc/conf.d/syslog
|
||||
|
||||
# Start Apache, PHP-FPM and Cron
|
||||
exec /usr/sbin/httpd -D FOREGROUND -f /etc/apache2/httpd.conf &
|
||||
exec /usr/sbin/php-fpm7 -F
|
||||
|
|
|
|||
Loading…
Reference in New Issue