summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-05-23 12:26:28 +0200
committerMichael Adam <obnox@samba.org>2008-08-13 11:54:02 +0200
commitf66a4745441e9a8ab9e35e572d7fcfaafd0e98f1 (patch)
tree54bcec03533b0cbcdc7de4905a41bb63d8e99962
parent254e118d55ae838d5a98043f40ce8387407f9e8b (diff)
downloadsamba-f66a4745441e9a8ab9e35e572d7fcfaafd0e98f1.tar.gz
samba-f66a4745441e9a8ab9e35e572d7fcfaafd0e98f1.tar.bz2
samba-f66a4745441e9a8ab9e35e572d7fcfaafd0e98f1.zip
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)
-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