mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 16:14:09 +02:00
Debian: Make sure to enable default features due when updating.
The last fix for that missed handling upgrading between versions, so we now enable features when upgrading from before 0.0.5+icingasnap201312070000. This enabling will include any release package previously installed. Fixes #5102
This commit is contained in:
parent
41ded2858c
commit
9bee1aaef6
4
debian/icinga2-common.postinst
vendored
4
debian/icinga2-common.postinst
vendored
@ -25,7 +25,9 @@ is_fresh_install()
|
|||||||
}
|
}
|
||||||
|
|
||||||
enable_default_features() {
|
enable_default_features() {
|
||||||
if is_fresh_install $@; then
|
FIX_VERSION="0.0.5+icingasnap201312070000"
|
||||||
|
if is_fresh_install $@ \
|
||||||
|
|| 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
|
for feature in checker notification mainlog; do
|
||||||
icinga2-enable-feature $feature
|
icinga2-enable-feature $feature
|
||||||
|
Loading…
x
Reference in New Issue
Block a user