Created
January 9, 2016 08:23
-
-
Save psgganesh/7718e04d18c3181ca6c9 to your computer and use it in GitHub Desktop.
Un attended server upgrades
This file contains hidden or 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
# 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