summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zshrc19
1 files changed, 17 insertions, 2 deletions
diff --git a/zshrc b/zshrc
index 7179a10..4288496 100644
--- a/zshrc
+++ b/zshrc
@@ -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