Skip to content

Instantly share code, notes, and snippets.

@dcampos
Created June 24, 2021 21:48
Show Gist options
  • Select an option

  • Save dcampos/d503ad891441ed79ccae4ae1ce247d3a to your computer and use it in GitHub Desktop.

Select an option

Save dcampos/d503ad891441ed79ccae4ae1ce247d3a to your computer and use it in GitHub Desktop.
#!/bin/bash
LOGFILE=/var/log/autoupdate.log
echo "==> Starting system update at `date +'%d/%m/%y %T'`" >>$LOGFILE
/usr/bin/mintupdate-cli upgrade --refresh-cache --yes >> $LOGFILE 2>&1
# UPDATE_SCRIPT=/usr/local/bin/autoupdate
# @hourly $UPDATE_SCRIPT
# @reboot sleep 300; $UPDATE_SCRIPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment