Skip to content

Instantly share code, notes, and snippets.

@xazax
Last active December 22, 2015 01:39
Show Gist options
  • Save xazax/6398282 to your computer and use it in GitHub Desktop.
Save xazax/6398282 to your computer and use it in GitHub Desktop.
What could possible go wrong?
#!/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 ###"
@xazax
Copy link
Author

xazax commented Aug 31, 2013

I run this from cron.hourly of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment