1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-25 17:57:42 +03:00

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)
This commit is contained in:
Michael Adam 2008-05-23 12:26:28 +02:00
parent 254e118d55
commit f66a474544

View 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