Automatic upgrades

From NA-Wiki

Jump to: navigation, search

Automatic upgrades

First install the following

apt-get install cron-apt
wget -O /etc/cron-apt/config http://na37.nada.kth.se/restricted/ubuntu/cron-apt/config
wget -O /etc/apt/security.sources.list http://na37.nada.kth.se/restricted/ubuntu/cron-apt/security.sources.list

When you are on vacation

Remove the -d flag from /etc/cron-apt/action.d/3-download and put an automatic reboot in /etc/cron.d/cron-apt like:

 0 4    * * *   root    test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt && /sbin/reboot

When you are back from the vacation remove the reboot statement from above and the -d switch from the action.d directory.

Personal tools