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

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

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: packaging
    • Labels:
      None
    • Environment:
      RedHat Linux, using RPM packages
    • Similar Issues:

      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 created issue -
            olenz Olaf Lenz made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-23273 [ JENKINS-23273 ]
            danielbeck Daniel Beck made changes -
            Component/s packaging [ 20120 ]
            Component/s core [ 15593 ]
            svanoort Sam Van Oort made changes -
            Assignee Sam Van Oort [ svanoort ]
            abayer Andrew Bayer made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 160528 ] JNJira + In-Review [ 196468 ]

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: