From 37f05d091e24ed23fba640bfc706010a9af9bb3a Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 25 Aug 2020 17:53:59 +0200 Subject: [PATCH] Fix spec file --- zabbix.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zabbix.spec b/zabbix.spec index 046a14a..2e07bbb 100644 --- a/zabbix.spec +++ b/zabbix.spec @@ -773,6 +773,7 @@ getent passwd zabbix > /dev/null || \ : %endif +%if 0%{?rhel} >= 6 %if 0%{?rhel} >= 7 %pre java-gateway getent group zabbix > /dev/null || groupadd -r zabbix @@ -782,7 +783,6 @@ getent passwd zabbix > /dev/null || \ : %endif - %pre proxy-mysql getent group zabbix > /dev/null || groupadd -r zabbix getent passwd zabbix > /dev/null || \ @@ -841,6 +841,7 @@ getent passwd zabbix > /dev/null || \ /usr/sbin/update-alternatives --install %{_sbindir}/zabbix_proxy \ zabbix-proxy %{_sbindir}/zabbix_proxy_sqlite3 10 : +%endif %if 0%{?rhel} >= 7 %post server-mysql