From 025865c2198a7b93fd2eb0c3e3d0a905cd3128ef Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 11 Mar 2012 14:00:00 +0000 Subject: Add upgrade-schroots git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@505 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- upgrade-schroots | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 upgrade-schroots diff --git a/upgrade-schroots b/upgrade-schroots new file mode 100755 index 0000000..c90ed85 --- /dev/null +++ b/upgrade-schroots @@ -0,0 +1,13 @@ +#!/bin/bash + +for c in `schroot -l`; do + case "$c" in + *-*-*-*) + ;; + source:*-*-sbuild) + echo "Doing $c" + schroot -c $c -u root -- sh -c 'apt-get update && apt-get dist-upgrade -y && apt-get clean' + echo + ;; + esac +done -- cgit v1.2.3