mirror of
https://github.com/luizeof/dockerpress.git
synced 2026-06-19 07:37:10 +00:00
fixes
This commit is contained in:
+2
-2
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user