From fcc04c9c51f229aeaa70f8ccce9f26e2872a35b3 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 8 May 2009 19:03:30 +0000 Subject: Split out functions git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@388 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- zshfunc/upgrade-porter-chroots | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 zshfunc/upgrade-porter-chroots (limited to 'zshfunc/upgrade-porter-chroots') diff --git a/zshfunc/upgrade-porter-chroots b/zshfunc/upgrade-porter-chroots new file mode 100644 index 0000000..7f22060 --- /dev/null +++ b/zshfunc/upgrade-porter-chroots @@ -0,0 +1,11 @@ +## vim:ft=zsh:foldmethod=marker + +upgrade-porter-chroots() { + cd + for i in $DEBPORTERHOSTS; do + mkdir hosts/chroot-$i 2>/dev/null || continue; + echo $i; + preexec $i; + ssh $i -t 'sudo /usr/sbin/upgrade-porter-chroots' + done +} -- cgit v1.2.3