Skip to content

Commit

Permalink
Update install script with conditional ca cert refresh.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaemnnosttv committed Dec 4, 2024
1 parent 0f0a882 commit 097a604
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/local-env/install-wordpress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ if [ "$WP_VERSION" == "latest" ]; then
wp core update-db --quiet
fi

if [ -n "$CA_CERT_REFRESH" ]; then
status_message "Updating WordPress certificate bundle..."
container curl --remote-name --show-error --silent https://raw.githubusercontent.com/WordPress/wordpress-develop/refs/heads/trunk/src/wp-includes/certificates/ca-bundle.crt
container mv ca-bundle.crt wp-includes/certificates/ca-bundle.crt
fi

# Switch to `twentytwenty` theme for consistent results (particularly for AMP compatibility).
# For older versions of WP, download and install it if it isn't present.
# If `twentytwenty` is already the active theme, the script will continue
Expand Down

0 comments on commit 097a604

Please sign in to comment.