generated from bisco/codex-bootstrap
feat: add internal WordPress cron runner
This commit is contained in:
@@ -9,6 +9,7 @@ COPY theme/azionelab /opt/azionelab/theme
|
||||
COPY mu-plugins/azionelab-content.php /opt/azionelab/azionelab-content.php
|
||||
|
||||
RUN sed -ri 's!^[[:space:]]*CustomLog .*!CustomLog /dev/null combined!' /etc/apache2/sites-available/000-default.conf \
|
||||
&& rm -rf /usr/src/wordpress/wp-content/plugins/akismet /usr/src/wordpress/wp-content/plugins/hello.php \
|
||||
&& a2enconf azionelab-apache-hardening \
|
||||
&& chmod 755 /usr/local/bin/azionelab-entrypoint \
|
||||
&& chmod 644 /usr/local/bin/azionelab-healthcheck.php \
|
||||
|
||||
@@ -24,7 +24,8 @@ case "$environment" in
|
||||
esac
|
||||
|
||||
if [ "${1:-}" = "apache2-foreground" ]; then
|
||||
mkdir -p /var/www/html/wp-content/themes /var/www/html/wp-content/mu-plugins
|
||||
mkdir -p /var/www/html/wp-content/themes /var/www/html/wp-content/mu-plugins /var/www/html/wp-content/plugins
|
||||
rm -rf /var/www/html/wp-content/plugins/akismet /var/www/html/wp-content/plugins/hello.php
|
||||
rm -rf /var/www/html/wp-content/themes/azionelab
|
||||
cp -a /opt/azionelab/theme /var/www/html/wp-content/themes/azionelab
|
||||
cp /opt/azionelab/azionelab-content.php /var/www/html/wp-content/mu-plugins/azionelab-content.php
|
||||
|
||||
Reference in New Issue
Block a user