summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-02-27 11:37:46 +0100
committerHolger Levsen <holger@layer-acht.org>2015-02-27 11:37:46 +0100
commit2f298f6b99d6bdf687ce0c5bb4f364b02628d4d1 (patch)
tree62a34d62599a0f09fa6e9dc7c50363fc4d85becb /bin
parent2578564632bcff380479473087e0c3bd9a61a33a (diff)
downloadjenkins.debian.net-2f298f6b99d6bdf687ce0c5bb4f364b02628d4d1.tar.xz
reproducible: 2 new jobs to create the sid+experimental schroots 4 times a day after the mirror pulses
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