Skip to content

Instantly share code, notes, and snippets.

@lukepolo
Created October 27, 2016 13:16
Show Gist options
  • Save lukepolo/7aee3745678c302db76d0bebaf508e83 to your computer and use it in GitHub Desktop.
Save lukepolo/7aee3745678c302db76d0bebaf508e83 to your computer and use it in GitHub Desktop.
cat > /etc/apt/apt.conf.d/50unattended-upgrades << EOF
Unattended-Upgrade::Allowed-Origins {
"Ubuntu xenial-security";
};
Unattended-Upgrade::Package-Blacklist {
//
};
EOF
cat > /etc/apt/apt.conf.d/10periodic << EOF
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::AutocleanInterval "7";
APT::Periodic::Unattended-Upgrade "1";
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment