Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-26460

RPM upgrade/install should adapt ownership of /var/cache/jenkins

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • packaging
    • None
    • RedHat Linux, using RPM packages

    Description

      The jenkins rpm packages correctly adapt the ownerships of /var/lib/jenkins and JENKINS_HOME to the JENKINS_USER from /etc/sysconfig/jenkins in a postinstall step.
      Unfortunately, jenkins also uses the directory /var/cache/jenkins, which is not modified. Therefore I suggest to extend the rpm postinstall script by the line:

      chown -R ${JENKINS_USER:-jenkins} /var/cache/jenkins
      

      Attachments

        Issue Links

          Activity

            olenz Olaf Lenz added a comment - - edited
            olenz Olaf Lenz added a comment - - edited I have proposed a patch: https://github.com/jenkinsci/jenkins/pull/1535
            jieryn jieryn added a comment -

            Olaf, thanks to your comment, I also included this in the JENKINS-23273 fix. Here's the PR: https://github.com/jenkinsci/jenkins/pull/1537

            jieryn jieryn added a comment - Olaf, thanks to your comment, I also included this in the JENKINS-23273 fix. Here's the PR: https://github.com/jenkinsci/jenkins/pull/1537
            jieryn jieryn added a comment - https://github.com/jenkinsci/packaging/pull/2

            People

              svanoort Sam Van Oort
              olenz Olaf Lenz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: