From: Alexander A. Klimov Date: Thu, 4 May 2017 15:11:20 +0000 (+0200) Subject: RPM spec: don't enable features after an upgrade X-Git-Tag: v2.7.0~81 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cfe4a170c5bde7d1e04fae90eb1cc3b6040ca373;p=icinga2 RPM spec: don't enable features after an upgrade fixes #4621 fixes #5226 Signed-off-by: Gunnar Beutner --- diff --git a/icinga2.spec b/icinga2.spec index 5b37ecfc8..cc01327de 100644 --- a/icinga2.spec +++ b/icinga2.spec @@ -469,10 +469,13 @@ getent passwd %{icinga_user} >/dev/null || %{_sbindir}/useradd -c "icinga" -s /s %fillup_and_insserv %{name} %endif -# initial installation, enable default features -for feature in checker notification mainlog; do - ln -sf ../features-available/${feature}.conf %{_sysconfdir}/%{name}/features-enabled/${feature}.conf -done +if [ ${1:-0} -eq 1 ] +then + # initial installation, enable default features + for feature in checker notification mainlog; do + ln -sf ../features-available/${feature}.conf %{_sysconfdir}/%{name}/features-enabled/${feature}.conf + done +fi exit 0