From: Thierry Parmentelat Date: Thu, 28 Mar 2019 14:19:29 +0000 (+0100) Subject: rpm scriptlets need to return 0 X-Git-Tag: sfa-4.0.3~1 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=0e37e8101b03f6c9fde4bfcb4287d6f5c6aedb50 rpm scriptlets need to return 0 --- diff --git a/sfa.spec b/sfa.spec index 8027d5c1..41318d35 100644 --- a/sfa.spec +++ b/sfa.spec @@ -198,6 +198,7 @@ rm -rf $RPM_BUILD_ROOT %post systemctl enable sfa-aggregate systemctl enable sfa-registry +true %preun if [ "$1" = 0 ] ; then @@ -206,6 +207,7 @@ if [ "$1" = 0 ] ; then systemctl is-active $service && systemctl stop $service done fi +true %postun if [ "$1" -ge "1" ] ; then @@ -213,6 +215,7 @@ if [ "$1" -ge "1" ] ; then systemctl is-active $service && systemctl restart $service done fi +true %changelog * Mon Jan 07 2019 Thierry - sfa-4.0-2