diff options
author | Sage Weil <sage@inktank.com> | 2013-03-22 15:24:39 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-03-22 15:24:51 -0700 |
commit | 838f1cde94f7243274a9fbd0742e7eed0c0fa4b1 (patch) | |
tree | 656509dadca8ec654fe15e0504a3eb318c27c43b /ceph.spec.in | |
parent | 4fe4deafbe1758a6b3570048aca57485bd562440 (diff) | |
download | ceph-838f1cde94f7243274a9fbd0742e7eed0c0fa4b1.tar.gz |
preserve /var/lib/ceph on deb/rpm purge
We should clobber configuration and log data, but *not* user data. Leave
/var/lib/ceph alone.
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Gary Lowell <gary.lowell@inktank.com>
Diffstat (limited to 'ceph.spec.in')
-rw-r--r-- | ceph.spec.in | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/ceph.spec.in b/ceph.spec.in index afee3314289..cb998c46d36 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -348,15 +348,6 @@ fi %endif # Package removal cleanup if [ "$1" -eq "0" ] ; then - - # be a little careful, here: unmount anything beneath here before removing it. - rm -rf --one-file-system -- /var/lib/ceph || true - if [ -d /var/lib/ceph ]; then - find /var/lib/ceph -mindepth 1 -maxdepth 2 -type d -exec umount \{\} \; - fi - rm -rf --one-file-system -- /var/lib/ceph - - # Other Ceph directories rm -rf /var/log/ceph rm -rf /etc/ceph fi |