diff options
author | Holger Levsen <holger@layer-acht.org> | 2014-04-27 20:52:00 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2014-04-27 20:52:00 +0200 |
commit | d1c2ca4e71d3a72867dc1ac3bba579beead624a5 (patch) | |
tree | cb663a4f313291053cf8a78410de2e0d80933380 /bin | |
parent | 58e40ca33d2c79a9054445d86e1e5a1688ac2e77 (diff) | |
download | jenkins.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-x | bin/schroot-create.sh | 4 |
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 |