Skip to content
Permalink
Browse files

Limit wp page revisions in QUADS container.

We want to limit the amount of page revisions wp uses as all content is
regenerated via quads.  This sets WP_POST_REVISIONS to 100.
Removing existing wp-config on entrypoint.

Change-Id: Idcc9abd1153d81badb2e3555484055e31ffa5b11
  • Loading branch information
sadsfae authored and grafuls committed Mar 12, 2020
1 parent acda6ea commit 204fed144418ca529d739d663cf0a516fea346a4
@@ -69,7 +69,7 @@ rt_url: https://engineering.example.com/rt/Ticket/Display.html
# this is used in some of the wiki generate for the links
quads_url: http://quads.scalelab.example.com
# url for a request form if you use one
# e.g. http://scalelab.redhat.com
# e.g. http://scalelab.example.com
quads_request_url:

# Foreman Specific Variables
@@ -35,6 +35,7 @@ services:
WORDPRESS_CONFIG_EXTRA: |
/* defaults */
define('WP_DEFAULT_THEME', 'quads');
define('WP_POST_REVISIONS', 100);
wp-db:
image: mariadb
@@ -36,6 +36,7 @@ services:
WORDPRESS_CONFIG_EXTRA: |
/* defaults */
define('WP_DEFAULT_THEME', 'quads');
define('WP_POST_REVISIONS', 100);
wp-db:
image: mariadb
@@ -35,6 +35,7 @@ services:
WORDPRESS_CONFIG_EXTRA: |
/* defaults */
define('WP_DEFAULT_THEME', 'quads');
define('WP_POST_REVISIONS', 100);
wp-db:
image: mariadb
@@ -144,6 +144,7 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
# https://github.com/docker-library/wordpress/issues/116
# https://github.com/WordPress/WordPress/commit/1acedc542fba2482bab88ec70d4bea4b997a92e4
sed -ri -e 's/\r$//' wp-config*
rm -rf wp-config.php

if [ ! -e wp-config.php ]; then
awk '

0 comments on commit 204fed1

Please sign in to comment.
You can’t perform that action at this time.