[polipo] make sure scriptlets exit without error
Bernard Johnson
bjohnson at fedoraproject.org
Tue Sep 27 04:19:05 UTC 2011
commit 5d756687255587f911c96b907ee68790d0c979c7
Author: Bernard Johnson <bjohnson at symetrix.com>
Date: Mon Sep 26 21:59:50 2011 -0600
make sure scriptlets exit without error
polipo.spec | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/polipo.spec b/polipo.spec
index 5d51044..cd6375d 100644
--- a/polipo.spec
+++ b/polipo.spec
@@ -104,7 +104,7 @@ if [ $1 -eq 1 ]; then
%if 0{?_with_systemd}
/bin/systemctl daemon-reload > /dev/null 2>&1 || :
%else
- /sbin/chkconfig --add %{name}
+ /sbin/chkconfig --add %{name} || :
%endif
fi
@@ -117,8 +117,8 @@ if [ $1 = 0 ] ; then
/sbin/systemctl disable %{name}.service > /dev/null 2>&1 || :
/sbin/systemctl stop %{name}.service > /dev/null 2>&1 || :
%else
- /sbin/service %{name} stop >/dev/null 2>&1
- /sbin/chkconfig --del %{name}
+ /sbin/service %{name} stop >/dev/null 2>&1 || :
+ /sbin/chkconfig --del %{name} || :
%endif
/sbin/install-info --quiet --info-dir=%{_infodir} --delete %{_infodir}/%{name}.info.gz || :
More information about the scm-commits
mailing list