Im working on setting up a lot of droplets, on Ubuntu 16.04, However it is very time consuming to go into each of the droplets and run sudo apt-get update and sudo apt-get dist-upgrade.
So what I have done is I have added following into my root crontab: sudo crontab -u root -e
0 3 * * * root /usr/bin/apt-get update && /usr/bin/apt-get dist-upgrade -q -y >> /var/log/apt/myupdates.log
However it is not working, and I was wondering if there is other things I need to think about?
PS: I have followed DO tutorials on how to disable root, so I dont have a root user, is this a problem?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.