From e8fd257df0103915dcf2c18fb806c1ec03a587e4 Mon Sep 17 00:00:00 2001 From: Justin Caratzas Date: Fri, 11 Apr 2025 14:09:18 -0400 Subject: [PATCH] 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 --- ceph.spec.in | 7 ------- 1 file changed, 7 deletions(-) diff --git a/ceph.spec.in b/ceph.spec.in index 1ceeb3f4a93a7..dc6adbc2a7fb8 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* -- 2.39.5