Skip to content

Instantly share code, notes, and snippets.

@zyzof
Created July 24, 2017 08:45
Show Gist options
  • Save zyzof/e806287ed8697444dff2d811e108202b to your computer and use it in GitHub Desktop.
Save zyzof/e806287ed8697444dff2d811e108202b to your computer and use it in GitHub Desktop.
Auto apt-get update/upgrade cron
00 2 * * * PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' apt-get -y update >> /var/log/apt-get-update.txt 2>&1
05 2 * * * PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' apt-get -y upgrade >> /var/log/apt-get-upgrade.txt 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment