summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-08-04 15:59:33 +0200
committerHolger Levsen <holger@layer-acht.org>2015-08-04 15:59:33 +0200
commit87560f33172d3fc28029f553aa9604618cc0da5b (patch)
treebf4061e23afc9fc484d31e9a58557fd57f5471e1
parent6bf5d85da0788c58b07419d17b10c314fed63ed8 (diff)
downloadjenkins.debian.net-87560f33172d3fc28029f553aa9604618cc0da5b.tar.xz
reproducible: create /srv/workspace/chroots correctly
-rwxr-xr-xupdate_jdn.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/update_jdn.sh b/update_jdn.sh
index ef660907..58df8ddc 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -42,7 +42,7 @@ done
sudo mkdir -p /srv/workspace
[ -d /srv/workspace/pbuilder ] || sudo mkdir -p /srv/workspace/pbuilder
-[ -h /chroots ] || ( sudo mkdir /srv/workspace/chroots ; sudo ln -s /srv/workspace/chroots chroots )
+[ -h /chroots ] || sudo ln -s /srv/workspace/chroots /chroots
if [ "$HOSTNAME" = "jenkins" ] ; then
if ! grep -q '^tmpfs\s\+/srv/workspace\s' /etc/fstab; then
@@ -59,7 +59,7 @@ if [ "$HOSTNAME" = "jenkins" ] ; then
fi
# make sure needed directories exists - some directories will not be needed on all hosts...
-for directory in /schroots /srv/reproducible-results /srv/d-i /srv/live-build /var/log/jenkins/ /srv/jenkins /srv/jenkins/pseudo-hosts ; do
+for directory in /schroots /srv/reproducible-results /srv/d-i /srv/live-build /var/log/jenkins/ /srv/jenkins /srv/jenkins/pseudo-hosts /srv/workspace/chroots ; do
if [ ! -d $directory ] ; then
sudo mkdir $directory
sudo chown jenkins.jenkins $directory