From 2ac9cbb1daa1bc2719a3bddaa31e11c445492b7c Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 28 Sep 2010 14:11:15 +0200 Subject: [PATCH] preun scriplets more robust, otherwise may prevent uninstall --- sfa.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sfa.spec b/sfa.spec index 6774c38a..d2e1f19a 100644 --- a/sfa.spec +++ b/sfa.spec @@ -153,8 +153,8 @@ chkconfig --add sfa %preun plc if [ "$1" = 0 ] ; then - /sbin/service sfa stop - /sbin/chkconfig --del sfa + /sbin/service sfa stop || : + /sbin/chkconfig --del sfa || : fi %postun plc @@ -166,8 +166,8 @@ chkconfig --add sfa-cm %preun cm if [ "$1" = 0 ] ; then - /sbin/service sfa-cm stop - /sbin/chkconfig --del sfa-cm + /sbin/service sfa-cm stop || : + /sbin/chkconfig --del sfa-cm || : fi %postun cm -- 2.45.2