This is an automated email from the git hooks/post-receive script.

sebastic-guest pushed a commit to branch master
in repository mapcache.

commit c696bcc727ecc173eadf9b77aa9e566373f49f20
Author: Bas Couwenberg <sebas...@xs4all.nl>
Date:   Fri Feb 28 17:54:03 2014 +0100

    Don't create /var/cache/mapcache in postinst, use 
libapache2-mod-mapcache.dirs instead.
---
 debian/changelog                        | 3 +++
 debian/libapache2-mod-mapcache.dirs     | 1 +
 debian/libapache2-mod-mapcache.postinst | 5 +++--
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 2161e9f..8761dbf 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,9 @@ mapcache (1.2.1-2) UNRELEASED; urgency=low
   * Enable parallel builds.
   * Drop lintian override for debian-watch-may-check-gpg-signature,
     shouldn't override pedantic tags.
+  * Don't create /var/cache/mapcache in postinst,
+    use libapache2-mod-mapcache.dirs instead.
+    (closes: #740327)
 
  -- Bas Couwenberg <sebas...@xs4all.nl>  Fri, 28 Feb 2014 13:13:02 +0100
 
diff --git a/debian/libapache2-mod-mapcache.dirs 
b/debian/libapache2-mod-mapcache.dirs
new file mode 100644
index 0000000..1ec35fa
--- /dev/null
+++ b/debian/libapache2-mod-mapcache.dirs
@@ -0,0 +1 @@
+var/cache/mapcache
diff --git a/debian/libapache2-mod-mapcache.postinst 
b/debian/libapache2-mod-mapcache.postinst
index 2c37b9e..3a4fb7f 100644
--- a/debian/libapache2-mod-mapcache.postinst
+++ b/debian/libapache2-mod-mapcache.postinst
@@ -3,8 +3,9 @@
 set -e
 
 if [ "$1" = configure ] ; then
-       if [ ! -e /var/cache/mapcache ]; then
-               install -d -m775 -o root -g www-data /var/cache/mapcache
+       if [ -e /var/cache/mapcache ]; then
+               chown root:www-data /var/cache/mapcache
+               chmod 775 /var/cache/mapcache
        fi
 
        # only enable on new installs, not on upgrades

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-grass/mapcache.git

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to