packaging(RHEL-CTDB): move "chkconfig --del winbind" to "%preun common"
authorMichael Adam <obnox@samba.org>
Fri, 23 May 2008 10:26:28 +0000 (12:26 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 13 Aug 2008 09:54:02 +0000 (11:54 +0200)
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

index c96a6b1d5ea0cacb8673881a18c30c251c911fe0..3dbeb8b01ce7d2ee5e333d2d08f24a43acb254f8 100644 (file)
@@ -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