I am in the process of collecting all of my bash scripts and placing them all in one index for easy access. On this blog post I have attached my Ubuntu update.sh script that simply runs updates and synchronizes the time with time.nist.gov. This script is meant to run as a cron job either weekly or monthly.
wget https://benarchuleta.com/s/update.sh or curl -O https://benarchuleta.com/s/update.sh
wget https://benarchuleta.com/s/web.sh or curl -O https://benarchuleta.com/s/web.sh