Skip to content

Instantly share code, notes, and snippets.

@psgganesh
Created January 9, 2016 08:23
Show Gist options
  • Save psgganesh/7718e04d18c3181ca6c9 to your computer and use it in GitHub Desktop.
Save psgganesh/7718e04d18c3181ca6c9 to your computer and use it in GitHub Desktop.
Un attended server upgrades
# Script for ubuntu security updates and server upgrades
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
# Install unattended upgrade first time
# sudo apt-get install unattended-upgrades
# sudo dpkg-reconfigure unattended-upgrades
sudo unattended-upgrade
# Reboot server
sudo shutdown -r now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment