[milter-greylist/f16] fixed logic in systemd scriptlets
ensc
ensc at fedoraproject.org
Wed Jan 4 14:16:15 UTC 2012
commit a10cc5781fc2f8adcebf6e36ea6ba163d9dd7c1b
Author: Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de>
Date: Tue Mar 1 18:32:58 2011 +0100
fixed logic in systemd scriptlets
milter-greylist.spec | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/milter-greylist.spec b/milter-greylist.spec
index 1a93bc8..aa83e64 100644
--- a/milter-greylist.spec
+++ b/milter-greylist.spec
@@ -251,12 +251,12 @@ test "$1" != "0" || /sbin/initctl -q stop milter-greylist || :
test "$1" -ne 1 || /bin/systemctl daemon-reload >/dev/null 2>&1 || :
%preun systemd
-test "$1" -ne 1 || /bin/systemctl disable %name.service > /dev/null 2>&1 || :
-test "$1" -ne 1 || /bin/systemctl stop %name.service > /dev/null 2>&1 || :
+test "$1" -ne 0 || /bin/systemctl disable %name.service > /dev/null 2>&1 || :
+test "$1" -ne 0 || /bin/systemctl stop %name.service > /dev/null 2>&1 || :
%postun systemd
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
-test "$1" -eq 1 || /bin/systemctl try-restart %name.service >/dev/null 2>&1 || :
+test "$1" -eq 0 || /bin/systemctl try-restart %name.service >/dev/null 2>&1 || :
%clean
@@ -306,6 +306,7 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Wed Jan 4 2012 Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de>
- fixed various systemd and tmpfile related issues (698961, comments 5 + 6)
+- fixed logic in systemd %%scriptlets
* Sat Apr 23 2011 Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de> - 4.2.7-1600
- updated to 4.2.7
More information about the scm-commits
mailing list