diff options
Diffstat (limited to 'zshrc')
-rw-r--r-- | zshrc | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -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 |