From 9e3859e812d9f0c39d35ba3012fab6635818231d Mon Sep 17 00:00:00 2001 From: Alexey Tikhonov Date: Mon, 29 Jan 2024 21:31:49 +0100 Subject: [PATCH] SPEC: clean up ldb-cache files on uninstall --- contrib/sssd.spec.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index 37d4330e92f..777cf6598d4 100644 --- a/contrib/sssd.spec.in +++ b/contrib/sssd.spec.in @@ -1062,6 +1062,9 @@ rm -f %{mcpath}/passwd rm -f %{mcpath}/group rm -f %{mcpath}/initgroups rm -f %{mcpath}/sid +if [ "$1" = 0 ] ; then + rm -f %{dbpath}/* +fi %systemd_postun_with_restart sssd-autofs.socket %systemd_postun_with_restart sssd-nss.socket %systemd_postun_with_restart sssd-pac.socket