From: Thierry Parmentelat Date: Tue, 28 Sep 2010 12:11:15 +0000 (+0200) Subject: preun scriplets more robust, otherwise may prevent uninstall X-Git-Tag: sfa-1.0-2~13 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;ds=sidebyside;h=2ac9cbb1daa1bc2719a3bddaa31e11c445492b7c;p=sfa.git preun scriplets more robust, otherwise may prevent uninstall --- 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