mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-20 20:24:33 +02:00
RPM spec: don't enable features after an upgrade
fixes #4621 fixes #5226 Signed-off-by: Gunnar Beutner <gunnar.beutner@icinga.com>
This commit is contained in:
parent
2196c6ea02
commit
cfe4a170c5
@ -469,10 +469,13 @@ getent passwd %{icinga_user} >/dev/null || %{_sbindir}/useradd -c "icinga" -s /s
|
|||||||
%fillup_and_insserv %{name}
|
%fillup_and_insserv %{name}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
if [ ${1:-0} -eq 1 ]
|
||||||
|
then
|
||||||
# initial installation, enable default features
|
# initial installation, enable default features
|
||||||
for feature in checker notification mainlog; do
|
for feature in checker notification mainlog; do
|
||||||
ln -sf ../features-available/${feature}.conf %{_sysconfdir}/%{name}/features-enabled/${feature}.conf
|
ln -sf ../features-available/${feature}.conf %{_sysconfdir}/%{name}/features-enabled/${feature}.conf
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user