This commit is contained in:
luizeof
2022-03-07 08:18:14 -08:00
parent 70979e6fd9
commit e8fadcea7a
4 changed files with 16 additions and 17 deletions
+2 -2
View File
@@ -173,8 +173,8 @@ RUN curl -o /home/mod-pagespeed-beta_current_amd64.deb https://dl-ssl.google.com
RUN dpkg -i /home/mod-pagespeed-*.deb
RUN apt-get -f install
COPY .htaccess /var/www/.htaccess-template
COPY wp-config-sample.php /var/www/wp-config-sample.php
COPY wordpress/.htaccess /var/www/.htaccess-template
COPY wordpress/wp-config-sample.php /var/www/wp-config-sample.php
# Copy commands
COPY bin/* /usr/local/bin/
+14 -15
View File
@@ -123,25 +123,24 @@ if [ ! -e wp-config.php ]; then
--admin_email=$ADMIN_EMAIL \
--skip-email \
--path=/var/www/html
# Updating Plugins ...
echo "Updating plugins ..."
wp plugin update --all
# Remove unused Dolly
echo "Remove Dolly..."
wp plugin delete hello
# Updating Themes ...
echo "Updating themes ..."
wp theme update --all
echo "Done Installing."
else
echo 'Wordpress is already installed.'
fi
wp rewrite structure '/%postname%/'
# Updating Plugins ...
echo "Updating plugins ..."
wp plugin update --all
# Remove unused Dolly
echo "Remove Dolly..."
wp plugin delete hello
# Updating Themes ...
echo "Updating themes ..."
wp theme update --all
else
echo 'wp-config.php file already exists.'
@@ -227,7 +226,7 @@ fi
if [ "$CRON_MEDIA_REGENERATE" -eq 1 ]; then
echo "CRON: Enabling Media Regenerate ..."
echo '1 0 * * * root /usr/local/bin/wpcli-run-media-regenerate' >>/etc/cron.d/dockerpress
wp plugin install regenerate-thumbnails --force --activate
wp plugin install regenerate-thumbnails --force --activate
fi
if [ "$CRON_CLEAR_TRANSIENT" -eq 1 ]; then
View File