From: Michael Adam Date: Fri, 23 May 2008 10:47:42 +0000 (+0200) Subject: packaging(RHEL-CTDB): move service smb restart from %postun to %post X-Git-Tag: samba-3.3.0pre1~196 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=98116075589abb7e0c9dc391f6d1bf3452025a1d;p=thirdparty%2Fsamba.git 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 --- diff --git a/packaging/RHEL-CTDB/samba.spec b/packaging/RHEL-CTDB/samba.spec index 3dbeb8b01ce..705810af4b5 100644 --- a/packaging/RHEL-CTDB/samba.spec +++ b/packaging/RHEL-CTDB/samba.spec @@ -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.