Update (minor) Core/bin/checl-wordpressversion, formerly wordpress-vercheck-all.sh, to be run regularly from cronjob to protect against WordPress version downgrades
This commit is contained in:
parent
a327a08783
commit
0b50eca793
@ -22,7 +22,7 @@
|
|||||||
# - Update .env with the new version and add IMAGE_VERSION_HOLD=true if needed
|
# - Update .env with the new version and add IMAGE_VERSION_HOLD=true if needed
|
||||||
|
|
||||||
# Enable debug output
|
# Enable debug output
|
||||||
set -x
|
## set -x
|
||||||
|
|
||||||
# Set your container name and .env file path
|
# Set your container name and .env file path
|
||||||
CONTAINER_NAME="wordpress"
|
CONTAINER_NAME="wordpress"
|
||||||
@ -303,7 +303,7 @@ test_versions() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Uncomment to run tests
|
# Uncomment to run tests
|
||||||
test_versions
|
## test_versions
|
||||||
|
|
||||||
# Get the current WordPress version
|
# Get the current WordPress version
|
||||||
current_wp_version=$(get_wp_version | tr -d '\r')
|
current_wp_version=$(get_wp_version | tr -d '\r')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user