enable_features_for_classic() {
if is_fresh_install $@; then
echo "enabling icinga2 features for classicui"
-
- for feature in compatlog statusdata command; do
- icinga2-enable-feature $feature
- done
+ icinga2-enable-feature compatlog statusdata command
echo "reloading icinga2"
[ -x $(which invoke-rc.d) ] && invoke-rc.d icinga2 reload
if is_fresh_install $@ \
|| dpkg --compare-versions "$2" lt "$FIX_VERSION"; then
echo "enabling default icinga2 features"
- for feature in checker notification mainlog; do
- icinga2-enable-feature $feature
- done
+ icinga2-enable-feature checker notification mainlog
fi
# handle new default features here in the future
}
if [ ${1:-0} -eq 1 ]
then
# initial installation, enable default features
- %{_sbindir}/icinga2-enable-feature checker
- %{_sbindir}/icinga2-enable-feature notification
- %{_sbindir}/icinga2-enable-feature mainlog
+ %{_sbindir}/icinga2-enable-feature checker notification mainlog
fi
exit 0
if [ ${1:-0} -eq 1 ]
then
# initial installation, enable default features
- %{_sbindir}/icinga2-enable-feature checker
- %{_sbindir}/icinga2-enable-feature notification
- %{_sbindir}/icinga2-enable-feature mainlog
+ %{_sbindir}/icinga2-enable-feature checker notification mainlog
fi
exit 0
if [ ${1:-0} -eq 1 ]
then
# initial installation, enable features
- %{_sbindir}/icinga2-enable-feature statusdata
- %{_sbindir}/icinga2-enable-feature compatlog
- %{_sbindir}/icinga2-enable-feature command
+ %{_sbindir}/icinga2-enable-feature statusdata compatlog command
fi
exit 0