diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-08-04 15:59:33 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-08-04 15:59:33 +0200 |
commit | 87560f33172d3fc28029f553aa9604618cc0da5b (patch) | |
tree | bf4061e23afc9fc484d31e9a58557fd57f5471e1 | |
parent | 6bf5d85da0788c58b07419d17b10c314fed63ed8 (diff) | |
download | jenkins.debian.net-87560f33172d3fc28029f553aa9604618cc0da5b.tar.xz |
reproducible: create /srv/workspace/chroots correctly
-rwxr-xr-x | update_jdn.sh | 4 |
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 |