summaryrefslogtreecommitdiff
path: root/upgrade-schroots
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2012-03-11 14:00:00 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2012-03-11 14:00:00 +0000
commit025865c2198a7b93fd2eb0c3e3d0a905cd3128ef (patch)
tree624a0d2431379e8602bb207b4c1778c3fe559838 /upgrade-schroots
parentbb148654a3991699c86a411542a0bc1b181c1e46 (diff)
Add upgrade-schroots
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@505 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'upgrade-schroots')
-rwxr-xr-xupgrade-schroots13
1 files changed, 13 insertions, 0 deletions
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