summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_update_schroot.sh
blob: 37ce7c480d40e56ae0d3eb2de464341fa6ef3a77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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