mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
packaging(RHEL-CTDB): ignore errors from init scripts in pre/post scripts.
Michael (This used to be commit 1cd7201e5387ca11e9b735d37b806cb14d4a8dd3)
This commit is contained in:
parent
f1e91b4528
commit
ecfb2274ef
@ -338,12 +338,12 @@ if [ "$1" -eq "2" ]; then
|
||||
fi
|
||||
|
||||
if [ "$1" -ge "1" ]; then
|
||||
%{initdir}/smb condrestart >/dev/null 2>&1
|
||||
%{initdir}/smb condrestart >/dev/null 2>&1 || :
|
||||
fi
|
||||
|
||||
%preun
|
||||
if [ $1 = 0 ] ; then
|
||||
/sbin/service smb stop >/dev/null 2>&1
|
||||
/sbin/service smb stop >/dev/null 2>&1 || :
|
||||
/sbin/chkconfig --del smb
|
||||
# rm -rf /var/log/samba/* /var/lib/samba/*
|
||||
fi
|
||||
@ -362,7 +362,7 @@ fi
|
||||
|
||||
%preun common
|
||||
if [ $1 = 0 ] ; then
|
||||
/sbin/service winbind stop >/dev/null 2>&1
|
||||
/sbin/service winbind stop >/dev/null 2>&1 || :
|
||||
/sbin/chkconfig --del winbind
|
||||
fi
|
||||
exit 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user