[znc/el4: 1/2] Catch scriptlet errors in preun

Nick Bebout nb at fedoraproject.org
Wed Jan 25 01:11:09 UTC 2012


commit bf0dd5f6672ed15e74bd850fb88fb5e289d509aa
Author: Nick Bebout <nb at fedoraproject.org>
Date:   Tue Jan 24 19:10:21 2012 -0600

    Catch scriptlet errors in preun

 znc.spec |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/znc.spec b/znc.spec
index 44f68fb..0152915 100644
--- a/znc.spec
+++ b/znc.spec
@@ -186,8 +186,8 @@ fi
 
 %if !%{use_systemd}
 if [ $1 -eq 0 ] ; then
-    /sbin/service znc stop >/dev/null 2>&1
-    /sbin/chkconfig --del znc
+    /sbin/service znc stop >/dev/null 2>&1 || :
+    /sbin/chkconfig --del znc || :
 fi
 %endif
 


More information about the scm-commits mailing list