mirror of https://github.com/Icinga/icinga2.git
parent
ff12522a62
commit
11058664bc
26
icinga2.spec
26
icinga2.spec
|
@ -279,7 +279,9 @@ exit 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# initial installation, enable default features
|
# initial installation, enable default features
|
||||||
%{_sbindir}/icinga2 feature enable checker notification mainlog
|
for feature in checker notification mainlog; do
|
||||||
|
ln -sf ../features-available/${feature}.conf %{_sysconfdir}/%{name}/features-enabled/${feature}.conf
|
||||||
|
done
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
@ -295,7 +297,9 @@ exit 0
|
||||||
if [ ${1:-0} -eq 1 ]
|
if [ ${1:-0} -eq 1 ]
|
||||||
then
|
then
|
||||||
# initial installation, enable default features
|
# initial installation, enable default features
|
||||||
%{_sbindir}/icinga2 feature enable checker notification mainlog
|
for feature in checker notification mainlog; do
|
||||||
|
ln -sf ../features-available/${feature}.conf %{_sysconfdir}/%{name}/features-enabled/${feature}.conf
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -367,7 +371,7 @@ exit 0
|
||||||
if [ ${1:-0} -eq 1 ]
|
if [ ${1:-0} -eq 1 ]
|
||||||
then
|
then
|
||||||
# initial installation, enable ido-mysql feature
|
# initial installation, enable ido-mysql feature
|
||||||
%{_sbindir}/icinga2 feature enable ido-mysql
|
ln -sf ../features-available/ido-mysql.conf %{_sysconfdir}/%{name}/features-enabled/ido-mysql.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -375,7 +379,7 @@ exit 0
|
||||||
%postun ido-mysql
|
%postun ido-mysql
|
||||||
if [ "$1" = "0" ]; then
|
if [ "$1" = "0" ]; then
|
||||||
# deinstallation of the package - remove feature
|
# deinstallation of the package - remove feature
|
||||||
test -x %{_sbindir}/icinga2 && %{_sbindir}/icinga2 feature disable ido-mysql
|
rm -f %{_sysconfdir}/%{name}/features-enabled/ido-mysql.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -384,7 +388,7 @@ exit 0
|
||||||
if [ ${1:-0} -eq 1 ]
|
if [ ${1:-0} -eq 1 ]
|
||||||
then
|
then
|
||||||
# initial installation, enable ido-pgsql feature
|
# initial installation, enable ido-pgsql feature
|
||||||
%{_sbindir}/icinga2 feature enable ido-pgsql
|
ln -sf ../features-available/ido-pgsql.conf %{_sysconfdir}/%{name}/features-enabled/ido-pgsql.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -392,7 +396,7 @@ exit 0
|
||||||
%postun ido-pgsql
|
%postun ido-pgsql
|
||||||
if [ "$1" = "0" ]; then
|
if [ "$1" = "0" ]; then
|
||||||
# deinstallation of the package - remove feature
|
# deinstallation of the package - remove feature
|
||||||
test -x %{_sbindir}/icinga2 && %{_sbindir}/icinga2 feature disable ido-pgsql
|
rm -f %{_sysconfdir}/%{name}/features-enabled/ido-pgsql.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -401,7 +405,9 @@ exit 0
|
||||||
if [ ${1:-0} -eq 1 ]
|
if [ ${1:-0} -eq 1 ]
|
||||||
then
|
then
|
||||||
# initial installation, enable features
|
# initial installation, enable features
|
||||||
%{_sbindir}/icinga2 feature enable statusdata compatlog command
|
for feature in statusdata compatlog command; do
|
||||||
|
ln -sf ../features-available/${feature}.conf %{_sysconfdir}/%{name}/features-enabled/${feature}.conf
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -409,9 +415,9 @@ exit 0
|
||||||
%postun classicui-config
|
%postun classicui-config
|
||||||
if [ "$1" = "0" ]; then
|
if [ "$1" = "0" ]; then
|
||||||
# deinstallation of the package - remove feature
|
# deinstallation of the package - remove feature
|
||||||
test -x %{_sbindir}/icinga2 && %{_sbindir}/icinga2 feature disable statusdata
|
for feature in statusdata compatlog command; do
|
||||||
test -x %{_sbindir}/icinga2 && %{_sbindir}/icinga2 feature disable compatlog
|
rm -f %{_sysconfdir}/%{name}/features-enabled/${feature}.conf
|
||||||
test -x %{_sbindir}/icinga2 && %{_sbindir}/icinga2 feature disable command
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue