Last active
March 24, 2024 08:21
-
-
Save anatolebeuzon/98ff195f3375e8ca621e7df3955b4f23 to your computer and use it in GitHub Desktop.
Unattended-upgrades config for Raspberry Pi running Raspbian
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APT::Periodic::Update-Package-Lists "1"; | |
APT::Periodic::Download-Upgradeable-Packages "1"; | |
APT::Periodic::AutocleanInterval "3"; | |
APT::Periodic::Verbose "1"; | |
APT::Periodic::Unattended-Upgrade "1"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The Raspberry Pi Foundation doesn't use separate a separate security upgrades channel. | |
// To make sure your RPi has the latest security fixes, you have to install all updates. | |
Unattended-Upgrade::Origins-Pattern { | |
"origin=Raspbian,codename=${distro_codename},label=Raspbian"; | |
"origin=Raspberry Pi Foundation,codename=${distro_codename},label=Raspberry Pi Foundation"; | |
}; | |
// Automatically reboot *WITHOUT CONFIRMATION* if | |
// the file /var/run/reboot-required is found after the upgrade | |
Unattended-Upgrade::Automatic-Reboot "true"; | |
// If automatic reboot is enabled and needed, reboot at the specific | |
// time instead of immediately | |
// Default: "now" | |
Unattended-Upgrade::Automatic-Reboot-Time "03:00"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment