summaryrefslogtreecommitdiff
path: root/zshrc
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2008-02-19 23:26:00 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2008-02-19 23:26:00 +0000
commitd54c50f624bca3e4094b6be022636db762328b32 (patch)
tree19f09682519923baddef80c102c95e812db1eb96 /zshrc
parent1618845482eaeaf86d2f71f5187ccc827c57295d (diff)
debianhosts
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@318 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc19
1 files changed, 17 insertions, 2 deletions
diff --git a/zshrc b/zshrc
index 7179a10..4288496 100644
--- a/zshrc
+++ b/zshrc
@@ -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