Olaf Lenz commented on Bug JENKINS-23273

I disagree that the behaviour should be removed. In a setting where Jenkins is run by a different user than "jenkins", this behaviour is absolutely required.
Maybe it would make sense to first check whether any of the files need to be changed?
Can somebody check how fast this command would run:

find /var/lib/jenkins -not -user jenkins

Then the code can be changed to something like

if find ${JENKINS_HOME:-/var/lib/jenkins} -not -user ${JENKINS_USER:-jenkins}; then
  chown -R ${JENKINS_USER:-jenkins} ${JENKINS_HOME:-/var/lib/jenkins}
fi
if find /var/log/jenkins -not -user ${JENKINS_USER:-jenkins}; then
  chown -R ${JENKINS_USER:-jenkins} /var/log/jenkins
fi
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to