stop wordpress toolkit notification emails
I get emails like this, how can I disable them?
Subject: sleep $((1 + RANDOM % 5))h $((1 + RANDOM % 60))m; /usr/bin/yum -y update wp-toolkit-cpanel
Body:
Loaded plugins: fastestmirror, universal-hooks
Loading mirror speeds from cached hostfile
* EA4: 91.197.228.252
* EA4-experimental: 91.197.228.252
* cpanel-addons-production-feed: 91.197.228.252
* cpanel-plugins: 91.197.228.252
No packages marked for update
-
Hi, You are getting this as part of the wp-toolkit cron notification. If you want to disable it, check the /etc/cron.d/wp-toolkit-update or /etc/cron* folders for the cron to verify the cron. 0 -
I would also agree that checking the cron is the way to go for this issue. 0 -
Right, the cron at /etc/cron.d/wp-toolkit-update has the following, I am still not clear at how to disable the emails, rather than the cron itself. 0 1 * * * root sleep $((1 + RANDOM \% 5))h $((1 + RANDOM \% 60))m; /usr/bin/yum -y update wp-toolkit-cpanel
0 -
Just add >/dev/null 2>&1
after the cron's command.0 -
Thanks, so it should be like this: 0 1 * * * root sleep $((1 + RANDOM \% 5))h $((1 + RANDOM \% 60))m; /usr/bin/yum -y update wp-toolkit-cpanel >/dev/null 2>&1
0 -
That looks correct to me. If you'd like to read more about that redirection, I found an excellent article here: Decoding `command > /dev/null 2>&1` 0 -
Thanks, so it should be like this:
0 1 * * * root sleep $((1 + RANDOM \% 5))h $((1 + RANDOM \% 60))m; /usr/bin/yum -y update wp-toolkit-cpanel >/dev/null 2>&1
Yes, this looks correct.0 -
Right, for some reason I am still getting them: Cron sleep $((1 + RANDOM % 5))h $((1 + RANDOM % 60))m; /usr/bin/yum -y update wp-toolkit-cpanel
0 -
@greektranslator - interesting. Since you're still seeing those it might be best to put in a ticket with our team so we can track down the root of the issue. 0 -
This is quite strange indeed. I edit the file, confirm the change. Then the other day, after I get the e-mail, I check the file again, and it is back in its original version. 0 -
@greektranslator - are you saying the line inside the cron is being reverted after you make the change? 0
Please sign in to leave a comment.
Comments
11 comments