[monit: 7/17] Fix postun and preun snippets
Maxim Burgerhout
wzzrd at fedoraproject.org
Fri Dec 2 22:16:28 UTC 2011
commit 28f7cac25840cc2fd968ddba3f8eefa6a83684b8
Author: Maxim Burgerhout <maxim at wzzrd.com>
Date: Tue Jul 26 15:43:13 2011 +0200
Fix postun and preun snippets
monit.spec | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/monit.spec b/monit.spec
index 7697e84..cb0d188 100644
--- a/monit.spec
+++ b/monit.spec
@@ -93,12 +93,12 @@ if [ $1 = 0 ]; then
fi
%postun
-if [ "$1" -ge "1" ]; then
+if [ $1 -ge 1 ]; then
/bin/systemctl try-restart monit.service &> /dev/null ||
fi
%postun sysvinit
-if [ "$1" -ge "1" ]; then
+if [ $1 -ge 1 ]; then
/sbin/service monit condrestart >/dev/null &> /dev/null
fi
More information about the scm-commits
mailing list