From a52c10743c185389e93ef82628131c6839c3e96b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Wed, 15 Feb 2017 16:11:56 +0100 Subject: [PATCH] =?UTF-8?q?Ensure=20to=20use=20the=20right=20command=20to?= =?UTF-8?q?=20check=20core=20update=E2=80=AF!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wordpress_cron | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wordpress_cron b/wordpress_cron index 50ca331..4a68e82 100755 --- a/wordpress_cron +++ b/wordpress_cron @@ -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"