Author Topic: How to stop update notifications for non existent updates?  (Read 129 times)

0 Members and 3 Guests are viewing this topic.

Offline
**
How to stop update notifications for non existent updates?
« on: January 19, 2025, 03:40:21 AM »
I login to the root panel every day twice a day and every time there is an orange notification in the bottom right saying there is 2 updates, it ALWAYS says 2 updates even if by chance UI would have 17 updates for real. Please tell me how to fix this. Is there maybe a CWP Cache somewhere that is stuck?

Offline
*****
Re: How to stop update notifications for non existent updates?
« Reply #1 on: January 19, 2025, 05:29:45 AM »
I added yum -y update to the daily cron and haven't looked back -- no update notices. Now I only get PHP build notices and the monthly nag about CWP Secure Kernel (which I have no use for). You could do the same with dnf on EL8/EL9.

Offline
**
Re: How to stop update notifications for non existent updates?
« Reply #2 on: January 19, 2025, 06:14:28 AM »
0 0 * * * yum -y update

Offline
*****
Re: How to stop update notifications for non existent updates?
« Reply #3 on: January 19, 2025, 06:35:27 PM »
This runs after the daily cwp task:
/etc/cron.daily/yum
Code: [Select]
#!/bin/sh
/usr/bin/yum -y update --security

Offline
**
Re: How to stop update notifications for non existent updates?
« Reply #4 on: January 19, 2025, 06:57:59 PM »
Ok, I deleted the other an added this: 0 0 * * * /etc/cron.daily/yum

Thank you

Offline
*****
Re: How to stop update notifications for non existent updates?
« Reply #5 on: January 19, 2025, 11:31:28 PM »
You shouldn't need an explicit crontab, as the daily jobs fire off if they are in place in that dir and have the proper permissions. But if you want an explicit root cron job, make sure you trigger it **after** the CWP daily anacron tasks.
Code: [Select]
0 5,12 * * * /usr/bin/yum -y update --security > /dev/null 2>&1