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:
Markus Frosch 2013-12-06 20:04:07 +01:00
parent 41ded2858c
commit 9bee1aaef6
1 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,9 @@ is_fresh_install()
}
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"
for feature in checker notification mainlog; do
icinga2-enable-feature $feature