I have scenario when Ubuntu 16.04 LTS server is powered on every day for 1 hour.
How to setup it in the way, that when started it updates itself automatically with an automatic reboot if needed?
Note: by updating I mean - keeping system up to date. Similar to running apt-get dist-upgrade (or similar, so that at least security updates are installed).
sudo reboot
? Does it counts as a shutdown?