Skip to content

Commit

Permalink
[Security] wordpress/* - Update WordPress to 6.0.3 (widdix#653)
Browse files Browse the repository at this point in the history
[Security] wordpress/* - Update WordPress to 6.0.3 (widdix#653)
[Improvement] wordpress/* - Update WP-CLI to 2.7.1 (widdix#653)
  • Loading branch information
michaelwittig authored Oct 18, 2022
1 parent 229a5d9 commit 82d3ff0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions wordpress/wordpress-ha-aurora.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -959,9 +959,9 @@ Resources:
# ensure than only one machine installs wp
if mkdir /var/www/lock; then
cd /var/www/html
wget --quiet --timeout=60 --output-document=wp-cli.phar https://github.com/wp-cli/wp-cli/releases/download/v2.6.0/wp-cli-2.6.0.phar
wget --quiet --timeout=60 --output-document=wp-cli.phar https://github.com/wp-cli/wp-cli/releases/download/v2.7.1/wp-cli-2.7.1.phar
if ! php wp-cli.phar core is-installed --allow-root; then
php wp-cli.phar core download --allow-root --version=6.0.2
php wp-cli.phar core download --allow-root --version=6.0.3
php wp-cli.phar core config --dbname='wordpress' --dbuser='wordpress' --dbpass='${DBMasterUserPassword}' --dbhost='${DBHost}' --allow-root
php wp-cli.phar core install --url='https://${DomainName}' --title='${BlogTitle}' --admin_user='${BlogAdminUsername}' --admin_password='${BlogAdminPassword}' --admin_email='${BlogAdminEMail}' --skip-email --allow-root
sed -i "/$table_prefix = 'wp_';/a\$_SERVER['HTTPS'] = 'on';" /var/www/html/wp-config.php
Expand Down
4 changes: 2 additions & 2 deletions wordpress/wordpress-ha.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1091,9 +1091,9 @@ Resources:
# ensure than only one machine installs wp
if mkdir /var/www/lock; then
cd /var/www/html
wget --quiet --timeout=60 --output-document=wp-cli.phar https://github.com/wp-cli/wp-cli/releases/download/v2.6.0/wp-cli-2.6.0.phar
wget --quiet --timeout=60 --output-document=wp-cli.phar https://github.com/wp-cli/wp-cli/releases/download/v2.7.1/wp-cli-2.7.1.phar
if ! php wp-cli.phar core is-installed --allow-root; then
php wp-cli.phar core download --allow-root --version=6.0.2
php wp-cli.phar core download --allow-root --version=6.0.3
php wp-cli.phar core config --dbname='wordpress' --dbuser='wordpress' --dbpass='${DBMasterUserPassword}' --dbhost='${DBHost}' --allow-root
php wp-cli.phar core install --url='https://${DomainName}' --title='${BlogTitle}' --admin_user='${BlogAdminUsername}' --admin_password='${BlogAdminPassword}' --admin_email='${BlogAdminEMail}' --skip-email --allow-root
sed -i "/$table_prefix = 'wp_';/a\$_SERVER['HTTPS'] = 'on';" /var/www/html/wp-config.php
Expand Down

0 comments on commit 82d3ff0

Please sign in to comment.