[omd-commits] OMD Git: omd: Debian: Harmonized default version handling with RPM based distros
git version control
git at mathias-kettner.de
Sat Jun 4 20:11:59 CEST 2016
Module: omd
Branch: master
Commit: 60b6cadb8044db12aa9028e1cb27597c6001ae1b
URL: http://omdistro.org/projects/omd/repository/revisions/60b6cadb8044db12aa9028e1cb27597c6001ae1b
Author: Lars Michelsen <lm at larsmichelsen.com>
Date: Sat Jun 4 20:11:56 2016 +0200
Commiter: Lars Michelsen <lm at larsmichelsen.com>
Date: Sat Jun 4 20:11:56 2016 +0200
Debian: Harmonized default version handling with RPM based distros
---
Changelog | 8 ++++++++
debian/postinst.in | 7 ++++++-
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/Changelog b/Changelog
index 53f0605..ce01b79 100644
--- a/Changelog
+++ b/Changelog
@@ -30,6 +30,14 @@ This file documents the revision history for the Open Monitoring Distribution
it will be changed to own mode during update. You might need
to reload/restart your system apache manually once to apply
the change.
+ - Debian: Harmonized default version handling with RPM based distros.
+ Previous OMD installations were leaving previously set default version
+ untouched during installation of a new OMD package on Debian based
+ distributions. This was handled differently on Debian and RPM based
+ distributions and lead to confusions when using both platforms.
+ We decided to unify the behaviour on all distributins and make OMD
+ automatically set the default version to the new one during
+ installation of a new package.
- FIX: PHP-Sessions were not cleaned up during run time. The sessions
were only cleared on system boot.
Added a cron job to the sites that runs on a daily base at 0:10
diff --git a/debian/postinst.in b/debian/postinst.in
index d35fa63..87d3315 100755
--- a/debian/postinst.in
+++ b/debian/postinst.in
@@ -94,8 +94,13 @@ case "$1" in
# -- default for init
DEFAULT=/etc/default/omd
if ! test -e $DEFAULT ; then
- echo "AUTOSTART=1" > $DEFAULT
+ echo "Activating init script /etc/init.d/omd"
+ echo "AUTOSTART=1" > $DEFAULT
fi
+
+ echo "New default version is ###OMD_VERSION###."
+ update-alternatives --set omd /omd/versions/###OMD_VERSION###
+
;;
abort-upgrade|abort-remove|abort-deconfigure)
More information about the omd-commits
mailing list