Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge pull request #2 from jieryn/JENKINS-23273
[FIXED JENKINS-23273] /etc/sysconfig option to skip (off default) lon…
- Loading branch information
Showing
2 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
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.