summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_update_schroot.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/bin/reproducible_update_schroot.sh b/bin/reproducible_update_schroot.sh
new file mode 100755
index 00000000..37ce7c48
--- /dev/null
+++ b/bin/reproducible_update_schroot.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+# Copyright 2015 Holger Levsen <holger@layer-acht.org>
+# released under the GPLv=2
+
+DEBUG=false
+. /srv/jenkins/bin/common-functions.sh
+common_init "$@"
+
+# common code defining db access
+. /srv/jenkins/bin/reproducible_common.sh
+
+# do the upgrade
+schroot --directory /root -u root -c source:jenkins-$1 -- apt-get update
+schroot --directory /root -u root -c source:jenkins-$1 -- apt-get -y -u dist-upgrade
+schroot --directory /root -u root -c source:jenkins-$1 -- apt-get --purge autoremove