Always there is the hurdle of keeping a server up to date. In Windows, this is easy, but linux is a little bit more work. Till now, it worked fine. An almost the same solution can be found here.
The first requirement is a working (local) email service on the host that will be upgraded. If that's not working, you will not get noticed about updates, error's and possible reboots. Let's install the software. We use two packages.
apt-get install unattended-upgrades apt-listchanges
This part is mostly suspect of your own preference. The configuration is placed in three files:
For my servers, I only changed the file /etc/apt/apt.conf.d/50unattended-upgrades. This one contains all the settings about the upgrading. An option you really want, is email notifications.
Unattended-Upgrade::Mail "root";
If you want automatically reboots, please enable:
Unattended-Upgrade::Automatic-Reboot "true";
There is a ton of other possible options, so please read the file and change to your own situation.