How to stop update notifications for non existent updates?

Started by DragoCom, January 19, 2025, 03:40:21 AM

Previous topic - Next topic

DragoCom

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?

overseer

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.


overseer

This runs after the daily cwp task:
/etc/cron.daily/yum

#!/bin/sh
/usr/bin/yum -y update --security

DragoCom

Ok, I deleted the other an added this: 0 0 * * * /etc/cron.daily/yum

Thank you

overseer

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.
0 5,12 * * * /usr/bin/yum -y update --security > /dev/null 2>&1