diff options
author | Peter Palfrader <peter@palfrader.org> | 2010-08-22 10:46:13 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2010-08-22 10:46:13 +0000 |
commit | 0b5892f4887f99b4a8cb1967ab8d834264922ebd (patch) | |
tree | d1b7cdc519045942c106e06c26117fd985003da4 /zshfunc | |
parent | b9c3c5d478eae7f49f49d189c9889673515cf64f (diff) |
run update-apt if stuff is not in OK state
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@453 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'zshfunc')
-rw-r--r-- | zshfunc/upgrade-torproject | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zshfunc/upgrade-torproject b/zshfunc/upgrade-torproject index 1dd6791..59c551c 100644 --- a/zshfunc/upgrade-torproject +++ b/zshfunc/upgrade-torproject @@ -10,6 +10,7 @@ for i in $TORPROJECTHOSTS; do ssh $i -t ' sudo apt-get update && sudo apt-get dist-upgrade && - sudo apt-get clean + sudo apt-get clean && + if ! grep "^OK" /var/cache/dsa/nagios/apt; then sudo /usr/sbin/dsa-update-apt-status; fi '; done |