From d12eb6e5f3ddda7c2dfa0115ebed0a70ae2beb4a Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 23 May 2008 12:47:42 +0200 Subject: 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 used to be commit 98116075589abb7e0c9dc391f6d1bf3452025a1d) --- packaging/RHEL-CTDB/samba.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'packaging/RHEL-CTDB') diff --git a/packaging/RHEL-CTDB/samba.spec b/packaging/RHEL-CTDB/samba.spec index 3dbeb8b01c..705810af4b 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. -- cgit