mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
packaging(RHEL-CTDB): move service smb restart from %postun to %post
What would be the use of restarting a service that has just been uninstalled... Michael
This commit is contained in:
parent
758f1de775
commit
9811607558
@ -337,6 +337,10 @@ if [ "$1" -eq "2" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$1" -ge "1" ]; then
|
||||
%{initdir}/smb restart >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
%preun
|
||||
if [ $1 = 0 ] ; then
|
||||
/sbin/chkconfig --del smb
|
||||
@ -345,11 +349,7 @@ if [ $1 = 0 ] ; then
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%postun
|
||||
if [ "$1" -ge "1" ]; then
|
||||
%{initdir}/smb restart >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
#%postun
|
||||
|
||||
%post swat
|
||||
# Add swat entry to /etc/services if not already there.
|
||||
|
Loading…
x
Reference in New Issue
Block a user