Last active
December 22, 2015 01:39
-
-
Save xazax/6398282 to your computer and use it in GitHub Desktop.
What could possible go wrong?
This file contains 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
#!/usr/bin/env bash | |
logger -t bleedingedge "### Starting automated upgrade with package update ###" | |
logger -t bleedingedge "(running 'aptitude update' and 'aptitude upgrade -y')" | |
aptitude update 2>&1 >/dev/null | logger -t bleedingedge | |
aptitude upgrade -y|logger -t bleedingedge | |
logger -t bleedingedge "## Ended automated upgrade to bleeding edge software ###" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I run this from cron.hourly of course.