diff options
author | Peter Palfrader <peter@palfrader.org> | 2008-02-27 17:38:57 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2008-02-27 17:38:57 +0000 |
commit | 2b2edfe424aa59f468a87d4c9377dee91e6673c6 (patch) | |
tree | a7c60066e30b9843706a5226b9b79f401a26955f | |
parent | d54c50f624bca3e4094b6be022636db762328b32 (diff) |
Add preexec call to upgrade* functions
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@319 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-rw-r--r-- | zshrc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -352,6 +352,7 @@ upgrade-porter-chroots() { fi touch hosts/chroot-$i; echo $i; + preexec $i; ssh $i -t 'cd ~/chroot && for i in */; do echo; @@ -371,6 +372,7 @@ upgrade-porter-hosts() { fi touch hosts/$i; echo $i; + preexec $i; ssh $i -t ' sudo apt-get update && sudo apt-get dist-upgrade && @@ -386,6 +388,7 @@ upgrade-debian-hosts() { fi touch hosts/$i; echo $i; + preexec $i; ssh $i -t ' sudo apt-get update && sudo apt-get dist-upgrade && @@ -401,6 +404,7 @@ upgrade-systems() { fi; touch hosts/$i; echo $i; + preexec $i; ssh $i -t 'apt-get update && if [ -e /usr/bin/apt-get.distrib ]; then aptitude dist-upgrade; |