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"