Last active
January 31, 2021 14:23
-
-
Save dcampos/38b56b0b0ba8883b16152474f5d7aaf0 to your computer and use it in GitHub Desktop.
Linux mint auto update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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