[SCM] Debian packaging for apache2 branch, master, updated. debian/2.2.22-3-46-g1b7c62a

Arno Töll arno at debian.org
Thu Jul 26 21:33:37 UTC 2012


The following commit has been merged in the master branch:
commit 1b7c62a2e1b996f34d88094cac204273f64d76b4
Author: Arno Töll <arno at debian.org>
Date:   Thu Jul 26 22:20:22 2012 +0200

    Purge disk cache on upgrades

diff --git a/debian/apache2.2-common.postinst b/debian/apache2.2-common.postinst
index 65a565c..fc0ec28 100644
--- a/debian/apache2.2-common.postinst
+++ b/debian/apache2.2-common.postinst
@@ -102,6 +102,16 @@ if [ -e /etc/apache2/disable-other-vhost-access-log.dpkg-apache2.2-common ] ; th
 	rm  /etc/apache2/disable-other-vhost-access-log.dpkg-apache2.2-common
 fi
 
+
+# Should run on upgrades from Squeeze or Testing only
+if dpkg --compare-versions "$2" lt 2.2.22-10; then
+	if [ -d /var/cache/apache2/mod_disk_cache ] ; then
+		echo "Purge obsolete mod_disk_cache cache data in /var/cache/apache2/mod_cache_disk/"
+		rm -rf /var/cache/apache2/mod_disk_cache
+	fi
+fi
+
+
 rm -f /etc/apache2/ports.conf.dpkg-apache2.2-common.old
 rm -f /etc/default/apache2.dpkg-apache2.2-common.old
 rm -f /etc/apache2/conf.d/charset.dpkg-apache2.2-common.old

-- 
Debian packaging for apache2



More information about the Pkg-apache-commits mailing list