diff options
author | Peter Palfrader <peter@palfrader.org> | 2010-03-11 14:29:35 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2010-03-11 14:29:35 +0000 |
commit | f7d8358df8e2953d6042c68286a3fc0a0acaf6ee (patch) | |
tree | b9a33cb37ae2219c9860518acd212e137ffebeb7 /zshfunc | |
parent | 5d1fbff99979cd8ae0663241b5bcf76c2ff39ae8 (diff) |
add upgrade-torproject
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@446 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'zshfunc')
-rw-r--r-- | zshfunc/upgrade-torproject | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/zshfunc/upgrade-torproject b/zshfunc/upgrade-torproject new file mode 100644 index 0000000..1dd6791 --- /dev/null +++ b/zshfunc/upgrade-torproject @@ -0,0 +1,15 @@ +## vim:ft=zsh:foldmethod=marker + +local i + +cd +for i in $TORPROJECTHOSTS; do + mkdir hosts/$i 2>/dev/null || continue; + echo $i; + preexec $i; + ssh $i -t ' + sudo apt-get update && + sudo apt-get dist-upgrade && + sudo apt-get clean + '; +done |