Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Commit

Permalink
Problem: RPM upgrade recursively changes ownership of /var/lib/pulp/
Browse files Browse the repository at this point in the history
Solution: stop calling chown during upgrade

fixes: #5220
https://pulp.plan.io/issues/5220
(cherry picked from commit e5cc3ac82c9e8d29ce9062ce7177aaa592f5b170)
  • Loading branch information
dkliban authored and zjhuntin committed Aug 28, 2019
1 parent dec7f4a commit 4f27436
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/pulp/pulp.spec
Expand Up @@ -516,9 +516,6 @@ if [ $1 -gt 1 ] ; then
/sbin/service pulp_celerybeat stop > /dev/null 2>&1 || :
/sbin/service pulp_resource_manager stop > /dev/null 2>&1 || :
%endif
if [ $(stat -c '%U:%G' /var/lib/pulp) != 'apache:pulp' ] ; then
/usr/bin/chown -R apache:pulp /var/lib/pulp
fi
fi

%preun server
Expand Down

0 comments on commit 4f27436

Please sign in to comment.