Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge pull request #2 from jieryn/JENKINS-23273
[FIXED JENKINS-23273] /etc/sysconfig option to skip (off default) lon…
- Loading branch information
Showing
with
15 additions
and 2 deletions.
@@ -110,8 +110,11 @@ fi | ||
|
||
# Ensure the right ownership on files | ||
. /etc/sysconfig/%{name} | ||
chown -R ${JENKINS_USER:-%{name}} /var/log/%{name} | ||
chown -R ${JENKINS_USER:-%{name}} ${JENKINS_HOME:-%{workdir}} | ||
if test ( "x"$JENKINS_INSTALL_SKIP_CHOWN != "xtrue" ); then | ||
This comment has been minimized.
This comment has been minimized.
jsnod
|
||
chown -R ${JENKINS_USER:-%{name}} /var/cache/%{name} | ||
chown -R ${JENKINS_USER:-%{name}} /var/log/%{name} | ||
chown -R ${JENKINS_USER:-%{name}} ${JENKINS_HOME:-%{workdir}} | ||
fi | ||
|
||
%preun | ||
if [ "$1" = 0 ] ; then | ||
@afx114 pointed in IRC on problems with this code. Though this shouldn't influence because expected values: true/false, but shell variable must be escaped and not a x-trick.