]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: don't rm ceph conf and logs in ceph-common postun rm-ceph-common-postun 62790/head
authorJustin Caratzas <jcaratza@ibm.com>
Fri, 11 Apr 2025 18:09:18 +0000 (14:09 -0400)
committerJustin Caratzas <jcaratzas@li-4c4c4544-0056-4b10-8030-b6c04f475933.ibm.com>
Fri, 11 Jul 2025 16:56:22 +0000 (12:56 -0400)
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 <jcaratza@ibm.com>
ceph.spec.in

index 1ceeb3f4a93a705e3da214f9a5b8a69314db1148..dc6adbc2a7fb8f1fd916e1b2d523b9a8c7ab07db 100644 (file)
@@ -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*