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:
parent
254e118d55
commit
f66a474544
@ -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