From f66a4745441e9a8ab9e35e572d7fcfaafd0e98f1 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 23 May 2008 12:26:28 +0200 Subject: packaging(RHEL-CTDB): move "chkconfig --del winbind" to "%preun common" remains of winbind are being removed from the main package. also stop the winbind service in the "%preun common" script. Michael (This used to be commit 758f1de7750471815a284e9fad927112b59dc085) --- packaging/RHEL-CTDB/samba.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- cgit