The cephadm postun macro in the rpm spec file doesn't test for upgrade,
and removes the cephadm user. The patch changes the macro to only remove
the cephadm user on uninstall.
Fixes: https://tracker.ceph.com/issues/55664
Signed-off-by: Scott Shambarger <devel@shambarger.net>
(cherry picked from commit
c881fd97c2e2f73b36028f6002e670ca449c4404)
%if ! 0%{?suse_version}
%postun -n cephadm
-userdel -r cephadm || true
-exit 0
+[ $1 -ne 0 ] || userdel cephadm || :
%endif
%files -n cephadm