Update WordPress 5.6.2 -> 5.7.0

+ Small update of logic in 10-init-wordpress
This commit is contained in:
xZero707
2021-03-19 19:34:19 +01:00
parent 15693d1627
commit 6878ea48e0
4 changed files with 10 additions and 5 deletions

View File

@@ -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..."