Package: cipux-cat-web
Version: 3.4.0.2-3
Severity: normal

When accessing $server/cipux-cat-web/cat.cgi I get the following error:

Software error:

Can not open 
/var/cache/cipux-cat-web/cipux-cat-web/c35005245674135cbd101c1409208d01 for 
writing! at /usr/share/cipux-cat-web/web/cat.cgi line 25

This directory needs to be created with proper attributes at install time.


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages cipux-cat-web depends on:
ii  apache2                       2.2.16-3   Apache HTTP Server metapackage
ii  apache2-mpm-worker [httpd-cgi 2.2.16-3   Apache HTTP Server - high speed th
ii  debconf [debconf-2.0]         1.5.36     Debian configuration management sy
ii  libcgi-formbuilder-perl       3.05.01-7  Easily generate and process statef
ii  libcipux-cat-web-perl         3.4.0.2-3  user and resource management frame
ii  libcipux-perl                 3.4.0.11-1 user and resource management frame
ii  libclass-std-perl             0.0.9-2    Support for creating standard "ins
ii  libdate-manip-perl            6.11-1     module for manipulating dates
ii  libfrontier-rpc-perl          0.07b4-4   Perl module to implement RPC calls
ii  libtemplate-perl              2.22-0.1   template processing system written
ii  perl                          5.10.1-15  Larry Wall's Practical Extraction 
ii  perl-modules [libversion-perl 5.10.1-15  Core Perl modules

Versions of packages cipux-cat-web recommends:
ii  cipux-rpcd                    3.4.0.8-1  XML-RPC server for CipUX

cipux-cat-web suggests no packages.

-- debconf information:
  cipux-cat-web/restart-webserver: true
  cipux-cat-web/reconfigure-webserver: apache2, lighttpd
>From 8993ac4074f48da64a9d34e6a062f8d6b4dc2fb9 Mon Sep 17 00:00:00 2001
From: Per Carlson <pe...@hemmop.com>
Date: Tue, 9 Nov 2010 13:46:44 +0100
Subject: [PATCH] d/postinst: added creation of /var/cache/cipux-cat-web

---
 debian/postinst |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/debian/postinst b/debian/postinst
index 433842e..a631d74 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -20,6 +20,13 @@ case "$1" in
 	[ -f /etc/cipux-cat-web/cipux-cat-web.conf ] && \
 		chmod 640 /etc/cipux-cat-web/cipux-cat-web.conf
 	chown -R www-data:www-data /etc/cipux-cat-web
+        #
+        # added by pe...@hemmop.com
+        if [ ! -d /var/cache/cipux-cat-web ]; then
+	    mkdir -p /var/cache/cipux-cat-web
+	fi
+	chown -R www-data:www-data /var/cache/cipux-cat-web
+	chmod 750 /var/cache/cipux-cat-web
 	;;
     abort-upgrade|abort-remove|abort-deconfigure)
 	;;
-- 
1.7.2.3

Reply via email to