updates
This commit is contained in:
parent
cd675c8f71
commit
ca80c233b2
|
|
@ -42,10 +42,6 @@ RUN apk add --no-cache \
|
||||||
vim \
|
vim \
|
||||||
shadow
|
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)
|
# Configure to use php fpm and don't use /var/www to store everything (modules and logs)
|
||||||
RUN \
|
RUN \
|
||||||
# Disable mpm_prefork
|
# Disable mpm_prefork
|
||||||
|
|
|
||||||
8
run.sh
8
run.sh
|
|
@ -1,10 +1,18 @@
|
||||||
#!/bin/sh
|
#!/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
|
# 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 -
|
(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.
|
# 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 -
|
(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
|
# Start Apache, PHP-FPM and Cron
|
||||||
exec /usr/sbin/httpd -D FOREGROUND -f /etc/apache2/httpd.conf &
|
exec /usr/sbin/httpd -D FOREGROUND -f /etc/apache2/httpd.conf &
|
||||||
exec /usr/sbin/php-fpm7 -F
|
exec /usr/sbin/php-fpm7 -F
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue