mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2025-12-11 12:02:39 +01:00
Update WordPress 5.6.2 -> 5.7.0
+ Small update of logic in 10-init-wordpress
This commit is contained in:
@@ -4,6 +4,11 @@ DISABLE_WP_UPDATES="${ENFORCE_DISABLE_WP_UPDATES:-true}"
|
||||
# Designed to replace original, overcomplicated entrypoint script from official wordpress docker repository
|
||||
# Why not use already available tools instead?!
|
||||
|
||||
# Removes trailing zero if found
|
||||
# This is required due to inconsistencies between WodPress docker image versioning and wp-cli core download
|
||||
# If patch version is 0, it is not considered by wp-cli.
|
||||
WP_VERSION=$(echo "${WP_VERSION}" | sed --expression='s/.0//g');
|
||||
|
||||
function disableUpdatesPatch() {
|
||||
if [ "${DISABLE_WP_UPDATES}" != "false" ]; then
|
||||
echo "> Disabling WordPress updates..."
|
||||
|
||||
Reference in New Issue
Block a user