From 279bfd63dc44ea97000583d9c9ad15098fd8b688 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 27 Dec 2015 18:34:11 +0100 Subject: [PATCH] redhat: don't use %elseif For some reason, it just doesn't work. --- redhat/lldpd.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/redhat/lldpd.spec b/redhat/lldpd.spec index 4b00fb92..73e8127e 100644 --- a/redhat/lldpd.spec +++ b/redhat/lldpd.spec @@ -235,7 +235,8 @@ if getent passwd %lldpd_user >/dev/null 2>&1 ; then : ; else \ %preun %stop_on_removal lldpd -%elseif %{without systemd} +%else +%if %{without systemd} # Service management for Redhat/CentOS without systemd %post @@ -266,6 +267,7 @@ fi %systemd_postun_with_restart lldpd.service /sbin/ldconfig +%endif %endif %clean -- 2.47.2