summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-05-23 12:51:32 +0200
committerMichael Adam <obnox@samba.org>2008-08-13 11:54:03 +0200
commitecfb2274ef9a1dd4d664f54540ef33635a94231b (patch)
treeb5ee22e3dbe72b27b2242c3f4f885897b296ff6d
parentf1e91b452897e5b372f3d3c160e3c1b796e771a5 (diff)
downloadsamba-ecfb2274ef9a1dd4d664f54540ef33635a94231b.tar.gz
samba-ecfb2274ef9a1dd4d664f54540ef33635a94231b.tar.bz2
samba-ecfb2274ef9a1dd4d664f54540ef33635a94231b.zip
packaging(RHEL-CTDB): ignore errors from init scripts in pre/post scripts.
Michael (This used to be commit 1cd7201e5387ca11e9b735d37b806cb14d4a8dd3)
-rw-r--r--packaging/RHEL-CTDB/samba.spec6
1 files changed, 3 insertions, 3 deletions
diff --git a/packaging/RHEL-CTDB/samba.spec b/packaging/RHEL-CTDB/samba.spec
index acf38b19bf..afe90ec5be 100644
--- a/packaging/RHEL-CTDB/samba.spec
+++ b/packaging/RHEL-CTDB/samba.spec
@@ -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