Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Improvement] wordpress/* - Update WordPress to 6.3.1 #706

Merged
merged 3 commits into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions wordpress/wordpress-ha-aurora.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ Parameters:
Type: String
Default: 'cron(0 5 ? * * *)'
DBServerInstanceType:
Description: 'The instance type of database server (e.g. db.t2.small).'
Description: 'The instance type of database server (e.g. db.t3.small).'
Type: String
Default: 'db.t2.small'
Default: 'db.t3.small'
DBBackupRetentionPeriod:
Description: 'The number of days to keep snapshots of the database.'
Type: Number
Expand Down Expand Up @@ -976,7 +976,7 @@ Resources:
cd /var/www/html
wget --quiet --timeout=60 --output-document=wp-cli.phar https://github.com/wp-cli/wp-cli/releases/download/v2.8.1/wp-cli-2.8.1.phar
if ! php wp-cli.phar core is-installed --allow-root; then
php wp-cli.phar core download --allow-root --version=6.3
php wp-cli.phar core download --allow-root --version=6.3.1
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
2 changes: 1 addition & 1 deletion wordpress/wordpress-ha.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ Resources:
cd /var/www/html
wget --quiet --timeout=60 --output-document=wp-cli.phar https://github.com/wp-cli/wp-cli/releases/download/v2.8.1/wp-cli-2.8.1.phar
if ! php wp-cli.phar core is-installed --allow-root; then
php wp-cli.phar core download --allow-root --version=6.3
php wp-cli.phar core download --allow-root --version=6.3.1
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
Loading