diff options
Diffstat (limited to 'zshfunc/upgrade-porter-chroots')
-rw-r--r-- | zshfunc/upgrade-porter-chroots | 11 |
1 files changed, 11 insertions, 0 deletions
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 +} |