Ubuntu Autoupdate

by bswopes
0 deployments · 0 still active · last rev. 1 year ago

Configure ubuntu host to perform automatic updates.

See: https://help.ubuntu.com/10.04/serverguide/automatic-updates.html

Compatible with: Ubuntu 14.04 LTS, Ubuntu 12.04 LTS
						#!/bin/bash

# Install unattended upgrades package
apt-get install unattended-upgrades

# Configure basic options
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