[shellinabox] Fix conditions
Simone Caronni
slaanesh at fedoraproject.org
Wed Sep 5 12:02:48 UTC 2012
commit 0d4036a652e3ccef500854cea1a0836c23b89cc2
Author: Simone Caronni <negativo17 at gmail.com>
Date: Wed Sep 5 14:02:24 2012 +0200
Fix conditions
shellinabox.spec | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/shellinabox.spec b/shellinabox.spec
index 585d86e..ee330dc 100644
--- a/shellinabox.spec
+++ b/shellinabox.spec
@@ -70,7 +70,6 @@ rm -rf %{buildroot}
%if 0%{?fedora} >= 15 || 0%{?rhel} > 6
-
%post
if [ $1 -eq 1 ] ; then
# Initial installation
@@ -91,9 +90,9 @@ if [ $1 -ge 1 ] ; then
/bin/systemctl try-restart shellinaboxd.service >/dev/null 2>&1 || :
fi
+%endif
-%elif 0%{?fedora} >= 18
-
+%if 0%{?fedora} >= 18
%post
%systemd_post shellinaboxd.service
@@ -104,9 +103,9 @@ fi
%postun
%systemd_postun_with_restart shellinaboxd.service
+%endif
-%else
-
+%if 0%{?rhel} <= 6
%post
/sbin/chkconfig --add shellinaboxd
@@ -122,7 +121,6 @@ if [ "$1" -ge "1" ]; then
/sbin/service shellinaboxd condrestart >/dev/null 2>&1 || :
fi
-
%endif
More information about the scm-commits
mailing list