From: Justin Caratzas Date: Fri, 11 Apr 2025 18:09:18 +0000 (-0400) Subject: ceph.spec.in: don't rm ceph conf and logs in ceph-common postun X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e8fd257df0103915dcf2c18fb806c1ec03a587e4;p=ceph.git ceph.spec.in: don't rm ceph conf and logs in ceph-common postun removing the ceph-common package should not remove ceph configs or logs. rpm -e removes configuration files properly declared if they have not been changed, and if logs need to be removed (eg. for CI), then that should be handled separately. Fixes: https://tracker.ceph.com/issues/11389 Signed-off-by: Justin Caratzas --- diff --git a/ceph.spec.in b/ceph.spec.in index 1ceeb3f4a93..dc6adbc2a7f 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -1887,13 +1887,6 @@ exit 0 %post common %tmpfiles_create %{_tmpfilesdir}/ceph-common.conf -%postun common -# Package removal cleanup -if [ "$1" -eq "0" ] ; then - rm -rf %{_localstatedir}/log/ceph - rm -rf %{_sysconfdir}/ceph -fi - %files mds %{_bindir}/ceph-mds %{_mandir}/man8/ceph-mds.8*