Commit Graph

23 Commits

Author SHA1 Message Date
Ilia Ross
9faa2b4323 Fix failed DNF update checks showing no updates
This PR fixes the Package Updates module reporting "no updates" when dnf check-update fails.

DNF prints its error to stderr and exits with status 1, but the module only read stdout, so a failed check looked like an empty list and was cached for hours. Users could go weeks or months without seeing that updates were blocked!

The module now checks the exit status. When a check fails, it keeps the last known list, shows the error on the module and refresh pages, and retries after 15 minutes instead of caching an empty result.

Scheduled checks email the failure instead of acting on the old list, and in new-only mode the failure is emailed once until a check succeeds again.

Fixes https://forum.virtualmin.com/t/no-warning-of-dnf-error-suppressing-update/138052
2026-09-25 02:10:53 +02:00
Ilia Ross
65e6226762 Add option to only email about newly available package updates
https://forum.virtualmin.com/t/can-we-make-security-updates-email-less-chatty/137796
2026-08-21 01:43:53 +02:00
Ilia Ross
5395befcef Fix scheduled emails being sent to bogus address when no default destination is set 2026-08-20 03:27:56 +02:00
Jamie Cameron
076f2eea33 Add name to default email if set 2026-08-19 18:18:51 -07:00
Jamie Cameron
6f4f85d33c Add UI option to control when update email is sent
https://github.com/webmin/webmin/issues/2726
2026-05-24 13:08:58 -07:00
Ilia Ross
04c33e77a4 Add optional pre and post scripts for scheduled package updates
https://forum.virtualmin.com/t/add-option-to-run-a-custom-command-following-all-scheduled-package-updates/136397
2026-05-11 22:06:20 +02:00
Jamie Cameron
f5c158ef6a Respect global notification address 2025-10-18 20:42:48 -07:00
Jamie Cameron
5992c7ba51 Respect global to address if set 2024-10-13 19:36:37 -07:00
Jamie Cameron
1bee0a007d Fix indefinite article https://github.com/webmin/webmin/issues/2289 2024-09-30 10:25:11 -07:00
Jamie Cameron
8c5fcef916 Fix string for update logging 2024-07-23 21:57:32 -07:00
Jamie Cameron
165af690c7 Log automatic package updates 2024-07-13 17:07:07 -07:00
Jamie Cameron
29da8ea3d0 Clarify what kind of update it is https://forum.virtualmin.com/t/security-updates-being-auto-installed-regardles-of-software-scheduled-upgrades-set-to-just-notify/127852 2024-07-12 17:22:19 -07:00
Jamie Cameron
5c8d5ee75e Add option to notify for security updates only https://github.com/webmin/webmin/issues/2075 2024-01-14 10:37:30 -08:00
Jamie Cameron
058230ab3d Clear caches before checking for updates, so it's always fresh https://github.com/webmin/webmin/issues/1863 2023-03-18 16:30:09 -07:00
Jamie Cameron
ba9334250e Add param to force a hostname 2020-12-18 15:21:34 -08:00
Jamie Cameron
ab6e4472fb Exclude packages already being updated from lists of updates 2018-03-26 17:18:49 -07:00
Jamie Cameron
506b4111fc Record updates in progress 2018-03-18 18:47:52 -07:00
Jamie Cameron
a83aa6e1f1 Don't re-install dependencies 2010-10-22 16:07:15 -07:00
Jamie Cameron
b66728033e More hacking on improved package updates list 2010-01-04 16:07:32 -08:00
Jamie Cameron
cad6122521 Fix function call 2009-12-10 10:36:50 -08:00
Jamie Cameron
6245c7c692 Optimize generation of updates.
Switch local to my.
2009-10-26 18:03:59 -07:00
Jamie Cameron
d2c3b072e3 Fixed scheduled updates feature 2009-10-03 14:34:54 -07:00
Jamie Cameron
136a04a61c First cut of the new package updates module 2009-10-01 14:09:36 -07:00