packaging(RHEL-CTDB): ignore errors from init scripts in pre/post scripts.
authorMichael Adam <obnox@samba.org>
Fri, 23 May 2008 10:51:32 +0000 (12:51 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 13 Aug 2008 09:54:03 +0000 (11:54 +0200)
Michael

packaging/RHEL-CTDB/samba.spec

index acf38b19bf9ae0a381042ecd0df8e595e3e00afb..afe90ec5beb2c99f913c8d63dd2fe2d20e5638f1 100644 (file)
@@ -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