]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
redhat: don't use %elseif
authorVincent Bernat <vincent@bernat.im>
Sun, 27 Dec 2015 17:34:11 +0000 (18:34 +0100)
committerVincent Bernat <vincent@bernat.im>
Sun, 27 Dec 2015 17:34:11 +0000 (18:34 +0100)
For some reason, it just doesn't work.

redhat/lldpd.spec

index 4b00fb926e34e653f5438e0b9140aa0dcefa448a..73e8127e52bb01c961d571a54c0e24bf5f2c437f 100644 (file)
@@ -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