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

update wordpress version in rock to 6.4.1 #156

Merged
merged 11 commits into from
Nov 17, 2023
Merged
1 change: 1 addition & 0 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class _ReplicaRelationNotReady(Exception):
"twentytwenty",
"twentytwentyone",
"twentytwentytwo",
"twentytwentythree",
"ubuntu-cloud-website",
"ubuntu-community-wordpress-theme/ubuntu-community",
"ubuntu-community/ubuntu-community",
Expand Down
8 changes: 3 additions & 5 deletions wordpress_rock/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ parts:
- apache2
plugin: nil
build-environment:
- WP_VERSION: 5.9.3
- WP_VERSION: 6.4.1
build-packages:
- curl
override-build: |
Expand All @@ -81,6 +81,7 @@ parts:
mkdir -p wordpress_install_dir
(cd wordpress_install_dir; $CRAFT_PART_BUILD/wp core download --version=${WP_VERSION} --allow-root)

rm -rf wordpress_install_dir/wp-content/themes/twentytwentythree
cp -R . $CRAFT_PART_INSTALL
organize:
wordpress_install_dir: /var/www/html
Expand Down Expand Up @@ -124,6 +125,7 @@ parts:
wp-mastodon-share
wp-polls
wp-statistics
wordpress-seo
override-build: |
for plugin in $WP_PLUGINS;
do
Expand All @@ -134,10 +136,6 @@ parts:
curl -sSL "https://downloads.wordpress.org/plugin/openid.3.5.0.zip" -o "openid.zip"
unzip -q "openid.zip"
rm "openid.zip"
# Latest YoastSEO does not support 5.9.3 version of WordPress.
curl -sSL "https://downloads.wordpress.org/plugin/wordpress-seo.18.9.zip" -o "wordpress-seo.zip"
unzip -q "wordpress-seo.zip"
rm "wordpress-seo.zip"
cp -R . $CRAFT_PART_INSTALL
organize:
"*": /var/www/html/wp-content/plugins/
Expand Down
Loading