From: Michael Adam Date: Fri, 23 May 2008 10:26:28 +0000 (+0200) Subject: packaging(RHEL-CTDB): move "chkconfig --del winbind" to "%preun common" X-Git-Tag: samba-3.3.0pre1~197 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=758f1de7750471815a284e9fad927112b59dc085;p=thirdparty%2Fsamba.git 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 --- diff --git a/packaging/RHEL-CTDB/samba.spec b/packaging/RHEL-CTDB/samba.spec index c96a6b1d5ea..3dbeb8b01ce 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