rpm scriptlets need to return 0
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 28 Mar 2019 14:19:29 +0000 (15:19 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 28 Mar 2019 14:19:29 +0000 (15:19 +0100)
sfa.spec

index 8027d5c..41318d3 100644 (file)
--- 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 <Parmentelat> - sfa-4.0-2