Skip to content

Instantly share code, notes, and snippets.

@dcampos
Last active January 31, 2021 14:23
Show Gist options
  • Select an option

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

Select an option

Save dcampos/38b56b0b0ba8883b16152474f5d7aaf0 to your computer and use it in GitHub Desktop.
Linux mint auto update
#!/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