Ensure to use the right command to check core update !
This commit is contained in:
parent
f58238e993
commit
a52c10743c
|
@ -23,7 +23,7 @@ if [ ! -f "${WP_CLI_PATH}" ]; then
|
|||
fi
|
||||
|
||||
# Verify if an update is available for WordPress
|
||||
if sudo -u www-data -- "${WP_CLI_PATH}" --path="${WP_ROOT}" plugin list|grep -v -i -q -- "success"
|
||||
if sudo -u www-data -- "${WP_CLI_PATH}" --path="${WP_ROOT}" core check-update |grep -v -i -q -- "success"
|
||||
then
|
||||
touch "${WP_CORE_UPDATE_LOG}"
|
||||
#printf '%b' "Please upgrade WordPress\n"
|
||||
|
@ -33,7 +33,7 @@ else
|
|||
fi
|
||||
|
||||
# Verify if updates are availables for plugins
|
||||
if sudo -u www-data -- "${WP_CLI_PATH}" --path="${WP_ROOT}" plugin list|grep -q -- "available"
|
||||
if sudo -u www-data -- "${WP_CLI_PATH}" --path="${WP_ROOT}" plugin list|grep -q -i -- "available"
|
||||
then
|
||||
touch "${WP_PLUGIN_UPDATE_LOG}"
|
||||
#printf '%b' "Please upgrade plugins\n"
|
||||
|
|
Loading…
Reference in New Issue