mirror of https://github.com/Icinga/icinga2.git
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
|
@ -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…
Reference in New Issue