diff options
author | Peter Palfrader <peter@palfrader.org> | 2008-02-19 23:26:00 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2008-02-19 23:26:00 +0000 |
commit | d54c50f624bca3e4094b6be022636db762328b32 (patch) | |
tree | 19f09682519923baddef80c102c95e812db1eb96 | |
parent | 1618845482eaeaf86d2f71f5187ccc827c57295d (diff) |
debianhosts
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@318 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-rw-r--r-- | zshrc | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -346,7 +346,7 @@ cols() { upgrade-porter-chroots() { cd - for i in `cat ~/.csshrc | grep '^porterbox' | sed -e 's/^.*=//' | tr ' ' '\n'`; do + for i in `cat ~/.csshrc | grep '^debporterbox' | sed -e 's/^.*=//' | tr ' ' '\n'`; do if [ -e hosts/chroot-$i ]; then continue; fi @@ -365,7 +365,22 @@ upgrade-porter-chroots() { } upgrade-porter-hosts() { cd - for i in `cat ~/.csshrc | grep '^porterbox' | sed -e 's/^.*=//' | tr ' ' '\n'`; do + for i in `cat ~/.csshrc | grep '^debporterbox' | sed -e 's/^.*=//' | tr ' ' '\n'`; do + if [ -e hosts/$i ]; then + continue; + fi + touch hosts/$i; + echo $i; + ssh $i -t ' + sudo apt-get update && + sudo apt-get dist-upgrade && + sudo apt-get clean; + '; + done +} +upgrade-debian-hosts() { + cd + for i in `cat ~/.csshrc | grep '^deb' | sed -e 's/^.*=//' | tr ' ' '\n'`; do if [ -e hosts/$i ]; then continue; fi |