Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-23273] Fix typo
  • Loading branch information
raul-arabaolaza committed Jan 31, 2017
1 parent 5ee2ae8 commit d6732ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rpm/build/SPECS/jenkins.spec
Expand Up @@ -93,7 +93,7 @@ rm -rf "%{buildroot}"
%post
/sbin/chkconfig --add %{name}

function chownIfNeccesary {
function chownIfNecessary {
logger -t %{name}.installer "Checking ${2} ownership"
if [ -f "${1}" ] ; then
owner=$(cat $1)
Expand All @@ -118,9 +118,9 @@ function chownIfNeccesary {
# the existing semantics
. /etc/sysconfig/%{name}
if test x"$JENKINS_INSTALL_SKIP_CHOWN" != "xtrue"; then
chownIfNeccesary "/tmp/%{name}.installer.cacheowner" /var/cache/%{name}
chownIfNeccesary "/tmp/%{name}.installer.logowner" /var/log/%{name}
chownIfNeccesary "/tmp/%{name}.installer.workdirowner" ${JENKINS_HOME:-%{workdir}}
chownIfNecessary "/tmp/%{name}.installer.cacheowner" /var/cache/%{name}
chownIfNecessary "/tmp/%{name}.installer.logowner" /var/log/%{name}
chownIfNecessary "/tmp/%{name}.installer.workdirowner" ${JENKINS_HOME:-%{workdir}}
fi

%preun
Expand Down

0 comments on commit d6732ac

Please sign in to comment.