From 2f298f6b99d6bdf687ce0c5bb4f364b02628d4d1 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 27 Feb 2015 11:37:46 +0100 Subject: reproducible: 2 new jobs to create the sid+experimental schroots 4 times a day after the mirror pulses --- bin/reproducible_update_schroot.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 bin/reproducible_update_schroot.sh (limited to 'bin') 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 +# 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 -- cgit v1.2.3-70-g09d2