[Pkg-nagios-changes] [SCM] debian packaging of icinga(-core) branch, master, updated. debian/1.7.0-1-6-ge5fd639

Alexander Wirt formorer at debian.org
Tue May 29 21:44:40 UTC 2012


The following commit has been merged in the master branch:
commit e5fd6394d47a5bcaa6e443675068770d3e88047d
Author: Alexander Wirt <formorer at debian.org>
Date:   Tue May 29 23:43:09 2012 +0200

    Improve retention.dat move

diff --git a/debian/icinga-core.postinst b/debian/icinga-core.postinst
index 7813f33..f671f9c 100644
--- a/debian/icinga-core.postinst
+++ b/debian/icinga-core.postinst
@@ -20,10 +20,12 @@
 
 case "$1" in
     configure)
-        if [ -e "/var/lib/icinga/retention.dat" ]
-        then
-            echo "Move old retention.dat to new location (/var/cache/icinga/)"
-            mv /var/lib/icinga/retention.dat /var/cach/icinga/retention.dat
+        if dpkg --compare-versions $2 lt-nl '1.7.0-1'; then
+            if [ -e "/var/lib/icinga/retention.dat" ]
+            then
+                echo "Move old retention.dat to new location (/var/cache/icinga/)"
+                mv /var/lib/icinga/retention.dat /var/cache/icinga/retention.dat
+            fi
         fi
 
         #if we stop icinga in icinga.prerm we should also start it here..

-- 
debian packaging of icinga(-core)



More information about the Pkg-nagios-changes mailing list