Control Web Panel

WebPanel => Updates => Topic started by: DragoCom on January 19, 2025, 03:40:21 AM

Title: How to stop update notifications for non existent updates?
Post by: DragoCom 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?
Title: Re: How to stop update notifications for non existent updates?
Post by: overseer 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.
Title: Re: How to stop update notifications for non existent updates?
Post by: DragoCom on January 19, 2025, 06:14:28 AM
0 0 * * * yum -y update
Title: Re: How to stop update notifications for non existent updates?
Post by: overseer 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
Title: Re: How to stop update notifications for non existent updates?
Post by: DragoCom on January 19, 2025, 06:57:59 PM
Ok, I deleted the other an added this: 0 0 * * * /etc/cron.daily/yum

Thank you
Title: Re: How to stop update notifications for non existent updates?
Post by: overseer 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