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/changelog.md b/changelog.md index bc311b5..71debf8 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-08 +* 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. 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. diff --git a/slic.php b/slic.php index 2c38ca0..622b0ba 100644 --- a/slic.php +++ b/slic.php @@ -33,7 +33,7 @@ ] ); $cli_name = 'slic'; -const CLI_VERSION = '1.5.3'; +const CLI_VERSION = '1.5.4'; // If the run-time option `-q`, for "quiet", is specified, then do not print the header. if ( in_array( '-q', $argv, true ) || ( in_array( 'exec', $argv, true ) && ! in_array( 'help', $argv, true ) ) ) {