Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-20407] Make sure dir exists before chmod
Ensures that the directory /var/run/jenkins exists before the installer
script attempts to chmod it.

Originally-From: jenkins-ci.org/commit/core/12abd62afe2e7068787d9ce2cb36e52d9109b10d
  • Loading branch information
wedge-jarrad committed Nov 8, 2013
1 parent 8954f82 commit 71118ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions debian/jenkins.postinst
Expand Up @@ -54,6 +54,7 @@ case "$1" in
# make sure jenkins can delete everything in /var/cache/jenkins to
# re-explode war. older installations may use /var/run/jenkins
# so make sure that they can delete too.
mkdir -p /var/run/jenkins
chown -R $JENKINS_USER:adm /var/cache/jenkins /var/run/jenkins
chmod -R 750 /var/cache/jenkins /var/run/jenkins
;;
Expand Down

0 comments on commit 71118ff

Please sign in to comment.