Project

General

Profile

Actions

Bug #11389

open

should not "rm -rf /etc/ceph" when uninstalling ceph-common

Added by Kefu Chai about 9 years ago. Updated over 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

we have

%postun -n ceph-common
# Package removal cleanup
if [ "$1" -eq "0" ] ; then
    rm -rf /var/log/ceph
    rm -rf /etc/ceph
fi

in our ceph.spec.

which basically nuke user's config file when user "rpm -e ceph-common".

but "rpm -e" should persist this file, per http://www.rpm.org/max-rpm/ch-rpm-erase.html .

Actions

Also available in: Atom PDF