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
|
fi
|
||||||
|
|
||||||
# Verify if an update is available for WordPress
|
# 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
|
then
|
||||||
touch "${WP_CORE_UPDATE_LOG}"
|
touch "${WP_CORE_UPDATE_LOG}"
|
||||||
#printf '%b' "Please upgrade WordPress\n"
|
#printf '%b' "Please upgrade WordPress\n"
|
||||||
|
@ -33,7 +33,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Verify if updates are availables for plugins
|
# 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
|
then
|
||||||
touch "${WP_PLUGIN_UPDATE_LOG}"
|
touch "${WP_PLUGIN_UPDATE_LOG}"
|
||||||
#printf '%b' "Please upgrade plugins\n"
|
#printf '%b' "Please upgrade plugins\n"
|
||||||
|
|
Loading…
Reference in New Issue