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

Alexander Wirt formorer at debian.org
Fri Jun 1 08:27:45 UTC 2012


The following commit has been merged in the master branch:
commit 4b2e286f5e1593d6ac116c17c274f328b5216e32
Author: Alexander Wirt <formorer at debian.org>
Date:   Fri Jun 1 07:52:46 2012 +0200

    Don't overwrite existing files during retention.dat move

diff --git a/debian/icinga-core.postinst b/debian/icinga-core.postinst
index f671f9c..7d69823 100644
--- a/debian/icinga-core.postinst
+++ b/debian/icinga-core.postinst
@@ -21,7 +21,7 @@
 case "$1" in
     configure)
         if dpkg --compare-versions $2 lt-nl '1.7.0-1'; then
-            if [ -e "/var/lib/icinga/retention.dat" ]
+            if [ -e "/var/lib/icinga/retention.dat" ] && [ ! -e "/var/cache/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

-- 
debian packaging of icinga(-core)



More information about the Pkg-nagios-changes mailing list