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>
%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*