Possible to validate unattended-upgrades configuration?
3
votes
1
answer
172
views
I edited the
/etc/apt/apt.conf.d/50unattended-upgrades
file (on Ubuntu 22.04.3) and intentionally introduced an error:
Unattended-Upgrade::Automatic-Reboot-WithUsers "Falsed"; // instead of "false"
When I restart the service it shows as running:
systemctl restart unattended-upgrades.service
systemctl status unattended-upgrades.service # shows "Active: active (running)"
If I run unattended-upgrades --dry-run
it exits without error.
How do I have confidence that the configuration file is correct and will be used? With nginx there is the nginx -t
command. Is there anything similar for unattended-upgrades
?
Asked by AJP
(254 rep)
Mar 11, 2024, 10:55 AM
Last activity: Mar 11, 2024, 12:03 PM
Last activity: Mar 11, 2024, 12:03 PM