From 0e37e8101b03f6c9fde4bfcb4287d6f5c6aedb50 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 28 Mar 2019 15:19:29 +0100 Subject: [PATCH] rpm scriptlets need to return 0 --- sfa.spec | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.43.0