Ensure to use the right command to check core update !

This commit is contained in:
Jeremy Gardais 2017-02-15 16:11:56 +01:00
parent f58238e993
commit a52c10743c
1 changed files with 2 additions and 2 deletions

View File

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