summaryrefslogtreecommitdiff
path: root/upgrade-schroots
diff options
context:
space:
mode:
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