From f89dbeaa7af9b795ede5d43be0fea3f8d929fd4a Mon Sep 17 00:00:00 2001 From: Justin Frydman Date: Fri, 5 Apr 2024 15:20:41 -0600 Subject: [PATCH 1/3] Disable automatic updating out of the box --- .env.slic | 8 ++++++++ slic-stack.yml | 2 ++ 2 files changed, 10 insertions(+) diff --git a/.env.slic b/.env.slic index 2c895ad..1dd73bf 100644 --- a/.env.slic +++ b/.env.slic @@ -85,3 +85,11 @@ SLIC_WP_HTTP_BLOCK_EXTERNAL=true # This value will be assigned to the DISABLE_WP_CRON constant defined in the wp-config.php file. # Set to `true` to disable the WordPress cron system, set to `false` to enable it. SLIC_DISABLE_WP_CRON=true + +# This value will be assigned to the WP_AUTO_UPDATE_CORE constant defined in the wp-config.php file. +# Set to `true` to allow automatic core updates to take place. +SLIC_WP_AUTO_UPDATE_CORE=false + +# This value will be assigned to the AUTOMATIC_UPDATER_DISABLED constant defined in the wp-config.php file. +# Set to `false` to allow all types of automatic updates. +SLIC_AUTOMATIC_UPDATER_DISABLED=true diff --git a/slic-stack.yml b/slic-stack.yml index 3a5ff4a..a39810a 100644 --- a/slic-stack.yml +++ b/slic-stack.yml @@ -89,6 +89,8 @@ services: define( 'WP_DEBUG_LOG', true ); define( 'DISABLE_WP_CRON', ${SLIC_DISABLE_WP_CRON:-true} ); define( 'WP_HTTP_BLOCK_EXTERNAL', ${SLIC_WP_HTTP_BLOCK_EXTERNAL:-true} ); + define( 'WP_AUTO_UPDATE_CORE', ${SLIC_WP_AUTO_UPDATE_CORE:-false} ); + define( 'AUTOMATIC_UPDATER_DISABLED', ${SLIC_AUTOMATIC_UPDATER_DISABLED:-true} ); # Configure this to debug the tests with XDebug. # Map the `_wordpress` directory to `/var/www/html' directory in your IDE of choice. # Map the `_plugins` directory to `/plugins` directory in your IDE of choice. From efd29b2587aba1730285fa8800adb4cfa65377ae Mon Sep 17 00:00:00 2001 From: Justin Frydman Date: Fri, 5 Apr 2024 15:29:36 -0600 Subject: [PATCH 2/3] Update changelog --- changelog.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/changelog.md b/changelog.md index bc311b5..5b54ae1 100644 --- a/changelog.md +++ b/changelog.md @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +# [1.5.4] - 2024-04-05 +* Change - Disable WordPress's automatic updating in slic containers via docker compose. See comments in .env.slic to customize this behavior. + # [1.5.3] - 2024-04-05 * Change - Build `linux/arm64` images for the `slic` and `wordpress` containers to avoid issues when running `slic` on ARM machines. From fc230d721c112071300bd071ebf0d23a76ca961a Mon Sep 17 00:00:00 2001 From: Justin Frydman Date: Fri, 5 Apr 2024 15:31:22 -0600 Subject: [PATCH 3/3] Improve changelog entry --- changelog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 5b54ae1..9c30934 100644 --- a/changelog.md +++ b/changelog.md @@ -5,7 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). # [1.5.4] - 2024-04-05 -* Change - Disable WordPress's automatic updating in slic containers via docker compose. See comments in .env.slic to customize this behavior. +* Change - Disable WordPress's automatic updating in slic containers via docker compose `WORDPRESS_CONFIG_EXTRA` defines. See comments in .env.slic to customize this behavior. # [1.5.3] - 2024-04-05 * Change - Build `linux/arm64` images for the `slic` and `wordpress` containers to avoid issues when running `slic` on ARM machines.