Skip to content

Commit

Permalink
[FIXED JENKINS-12231] ensure right owner
Browse files Browse the repository at this point in the history
Originally-From: jenkins-ci.org/commit/core/4335bd435f9e5258831c5631bfab2fd837fd7719
  • Loading branch information
ndeloof committed Jan 20, 2014
1 parent 9df2af1 commit 144b7bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SPECS/jenkins.spec
Expand Up @@ -110,6 +110,10 @@ if test -d /var/run/hudson; then
rmdir /var/run/hudson
fi

# Ensure the right ownership on files
. /etc/sysconfig/jenkins
chown -R ${JENKINS_USER:-jenkins} /var/log/jenkins
chown -R ${JENKINS_USER:-jenkins} ${JENKINS_HOME:-%{workdir}}

%preun
if [ "$1" = 0 ] ; then
Expand Down

0 comments on commit 144b7bd

Please sign in to comment.