mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +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 commit is contained in:
parent
7ebc1ea13f
commit
758f1de775
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user