[Pkg-citadel-commit] r303 - citadel/trunk/debian

meskes at alioth.debian.org meskes at alioth.debian.org
Wed Mar 18 12:28:17 UTC 2009


Author: meskes
Date: 2009-03-18 12:28:16 +0000 (Wed, 18 Mar 2009)
New Revision: 303

Modified:
   citadel/trunk/debian/citadel-server.postinst
   citadel/trunk/debian/citadel.init
Log:
Make sure we create /var/run/citadel



Modified: citadel/trunk/debian/citadel-server.postinst
===================================================================
--- citadel/trunk/debian/citadel-server.postinst	2009-03-18 11:51:28 UTC (rev 302)
+++ citadel/trunk/debian/citadel-server.postinst	2009-03-18 12:28:16 UTC (rev 303)
@@ -7,6 +7,8 @@
 . /usr/share/debconf/confmodule
 db_version 2.0
 
+RUNDIR=/var/run/citadel
+
 move_file()
 {
 	[ ! -f $1 ] && return
@@ -16,6 +18,10 @@
 
 case "$1" in
     configure)
+	if test ! -d $RUNDIR; then
+            mkdir -p $RUNDIR
+        fi
+
         chown -R citadel:citadel /etc/citadel
         chown -R citadel:citadel /var/lib/citadel /var/spool/citadel
 

Modified: citadel/trunk/debian/citadel.init
===================================================================
--- citadel/trunk/debian/citadel.init	2009-03-18 11:51:28 UTC (rev 302)
+++ citadel/trunk/debian/citadel.init	2009-03-18 12:28:16 UTC (rev 303)
@@ -46,7 +46,7 @@
 #
 do_start()
 {
-        # for ubuntu: check our volatile dirs.
+        # check our volatile dirs.
         if test ! -d $RUNDIR; then
 	    mkdir -p $RUNDIR
 	fi




More information about the Pkg-citadel-commit mailing list