diff options
Diffstat (limited to 'zshrc')
-rw-r--r-- | zshrc | 19 |
1 files changed, 3 insertions, 16 deletions
@@ -365,23 +365,10 @@ upgrade-porter-chroots() { done'; done } -upgrade-porter-hosts() { - cd - for i in `cat ~/.csshrc | grep '^debporterbox' | sed -e 's/^.*=//' | tr ' ' '\n'`; do - mkdir hosts/chroot-$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 -} upgrade-debian-hosts() { cd for i in `cat ~/.csshrc | grep '^deb' | sed -e 's/^.*=//' | tr ' ' '\n'`; do - mkdir hosts/chroot-$i 2>/dev/null || continue; + mkdir hosts/$i 2>/dev/null || continue; echo $i; preexec $i; ssh $i -t ' @@ -395,7 +382,7 @@ upgrade-debian-hosts() { upgrade-systems() { cd for i in `cat ~/.csshrc | tr ' ' '\n' | grep @`; do - mkdir hosts/chroot-$i 2>/dev/null || continue; + mkdir hosts/$i 2>/dev/null || continue; echo $i; preexec $i; ssh $i -t 'apt-get update && @@ -410,7 +397,7 @@ upgrade-systems() { upgrade-came() { cd for i in $HOSTS; do - mkdir hosts/chroot-$i 2>/dev/null || continue; + mkdir hosts/$i 2>/dev/null || continue; echo $i; preexec $i; ssh -l root $i -t 'apt-get update && |