mirror of
https://github.com/Icinga/icinga2.git
synced 2025-05-03 06:00:17 +02:00
Use icinga2-enable-feature's multi-argument functionality in the Debian/RPM packages.
Refs #6315
This commit is contained in:
parent
5b3b10b265
commit
59a0ff00a7
5
debian/icinga2-classicui.postinst
vendored
5
debian/icinga2-classicui.postinst
vendored
@ -37,10 +37,7 @@ is_fresh_install()
|
|||||||
enable_features_for_classic() {
|
enable_features_for_classic() {
|
||||||
if is_fresh_install $@; then
|
if is_fresh_install $@; then
|
||||||
echo "enabling icinga2 features for classicui"
|
echo "enabling icinga2 features for classicui"
|
||||||
|
icinga2-enable-feature compatlog statusdata command
|
||||||
for feature in compatlog statusdata command; do
|
|
||||||
icinga2-enable-feature $feature
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "reloading icinga2"
|
echo "reloading icinga2"
|
||||||
[ -x $(which invoke-rc.d) ] && invoke-rc.d icinga2 reload
|
[ -x $(which invoke-rc.d) ] && invoke-rc.d icinga2 reload
|
||||||
|
4
debian/icinga2-common.postinst
vendored
4
debian/icinga2-common.postinst
vendored
@ -29,9 +29,7 @@ enable_default_features() {
|
|||||||
if is_fresh_install $@ \
|
if is_fresh_install $@ \
|
||||||
|| dpkg --compare-versions "$2" lt "$FIX_VERSION"; then
|
|| dpkg --compare-versions "$2" lt "$FIX_VERSION"; then
|
||||||
echo "enabling default icinga2 features"
|
echo "enabling default icinga2 features"
|
||||||
for feature in checker notification mainlog; do
|
icinga2-enable-feature checker notification mainlog
|
||||||
icinga2-enable-feature $feature
|
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
# handle new default features here in the future
|
# handle new default features here in the future
|
||||||
}
|
}
|
||||||
|
12
icinga2.spec
12
icinga2.spec
@ -282,9 +282,7 @@ 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-enable-feature checker
|
%{_sbindir}/icinga2-enable-feature checker notification mainlog
|
||||||
%{_sbindir}/icinga2-enable-feature notification
|
|
||||||
%{_sbindir}/icinga2-enable-feature mainlog
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
@ -311,9 +309,7 @@ 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-enable-feature checker
|
%{_sbindir}/icinga2-enable-feature checker notification mainlog
|
||||||
%{_sbindir}/icinga2-enable-feature notification
|
|
||||||
%{_sbindir}/icinga2-enable-feature mainlog
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
@ -376,9 +372,7 @@ exit 0
|
|||||||
if [ ${1:-0} -eq 1 ]
|
if [ ${1:-0} -eq 1 ]
|
||||||
then
|
then
|
||||||
# initial installation, enable features
|
# initial installation, enable features
|
||||||
%{_sbindir}/icinga2-enable-feature statusdata
|
%{_sbindir}/icinga2-enable-feature statusdata compatlog command
|
||||||
%{_sbindir}/icinga2-enable-feature compatlog
|
|
||||||
%{_sbindir}/icinga2-enable-feature command
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user