Skip to content

Commit

Permalink
update wordpress version in rock to 6.4.1 (#156)
Browse files Browse the repository at this point in the history
Co-authored-by: arturo-seijas <102022572+arturo-seijas@users.noreply.github.com>
  • Loading branch information
Thanhphan1147 and arturo-seijas authored Nov 17, 2023
1 parent 8eab4c4 commit a7f62fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 3 additions & 1 deletion 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 Expand Up @@ -382,7 +383,8 @@ def _gen_wp_config(self):
define( 'WP_CONTENT_URL', $_w_p_http_protocol . $_SERVER['HTTP_HOST'] . '/wp-content' );
define( 'WP_SITEURL', $_w_p_http_protocol . $_SERVER['HTTP_HOST'] );
define( 'WP_URL', $_w_p_http_protocol . $_SERVER['HTTP_HOST'] );
define( 'WP_HOME', $_w_p_http_protocol . $_SERVER['HTTP_HOST'] );"""
define( 'WP_HOME', $_w_p_http_protocol . $_SERVER['HTTP_HOST'] );
define( 'WP_DEFAULT_THEME', "twentytwentythree" );"""
)
]

Expand Down
9 changes: 4 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,8 @@ 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
rm -rf wordpress_install_dir/wp-content/themes/twentytwentyfour
cp -R . $CRAFT_PART_INSTALL
organize:
wordpress_install_dir: /var/www/html
Expand Down Expand Up @@ -124,6 +126,7 @@ parts:
wp-mastodon-share
wp-polls
wp-statistics
wordpress-seo
override-build: |
for plugin in $WP_PLUGINS;
do
Expand All @@ -134,10 +137,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

0 comments on commit a7f62fe

Please sign in to comment.