summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-04-27 20:52:00 +0200
committerHolger Levsen <holger@layer-acht.org>2014-04-27 20:52:00 +0200
commitd1c2ca4e71d3a72867dc1ac3bba579beead624a5 (patch)
treecb663a4f313291053cf8a78410de2e0d80933380 /bin
parent58e40ca33d2c79a9054445d86e1e5a1688ac2e77 (diff)
downloadjenkins.debian.net-d1c2ca4e71d3a72867dc1ac3bba579beead624a5.tar.xz
schroot either needs to be executed in an directory which exists in the schroot too, or --directory be used...
Diffstat (limited to 'bin')
-rwxr-xr-xbin/schroot-create.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/schroot-create.sh b/bin/schroot-create.sh
index d44cedc3..6fff0c49 100755
--- a/bin/schroot-create.sh
+++ b/bin/schroot-create.sh
@@ -93,8 +93,12 @@ sudo tee /etc/schroot/chroot.d/jenkins-"$TARGET" <<-__END__
union-type=aufs
__END__
+cd /tmp
+
schroot -c "source:jenkins-$TARGET" -u root -- apt-get update
if [ -n "$1" ]
then
schroot -c "source:jenkins-$TARGET" -u root -- apt-get install -y --no-install-recommends "$@"
fi
+
+cd $CURDIR