summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/RHEL-CTDB/samba.spec8
1 files changed, 7 insertions, 1 deletions
diff --git a/packaging/RHEL-CTDB/samba.spec b/packaging/RHEL-CTDB/samba.spec
index c96a6b1d5e..3dbeb8b01c 100644
--- a/packaging/RHEL-CTDB/samba.spec
+++ b/packaging/RHEL-CTDB/samba.spec
@@ -340,7 +340,6 @@ fi
%preun
if [ $1 = 0 ] ; then
/sbin/chkconfig --del smb
- /sbin/chkconfig --del winbind
# rm -rf /var/log/samba/* /var/lib/samba/*
/sbin/service smb stop >/dev/null 2>&1
fi
@@ -361,6 +360,13 @@ fi
%post common
/sbin/ldconfig
+%preun common
+if [ $1 = 0 ] ; then
+ /sbin/service winbind stop >/dev/null 2>&1
+ /sbin/chkconfig --del winbind
+fi
+exit 0
+
%postun common
/sbin/ldconfig