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

meskes at alioth.debian.org meskes at alioth.debian.org
Sat Feb 28 16:26:46 UTC 2009


Author: meskes
Date: 2009-02-28 16:26:46 +0000 (Sat, 28 Feb 2009)
New Revision: 223

Modified:
   citadel/trunk/debian/citadel-server.postinst
Log:
Move internal config files to new location


Modified: citadel/trunk/debian/citadel-server.postinst
===================================================================
--- citadel/trunk/debian/citadel-server.postinst	2009-02-28 16:17:28 UTC (rev 222)
+++ citadel/trunk/debian/citadel-server.postinst	2009-02-28 16:26:46 UTC (rev 223)
@@ -7,10 +7,13 @@
 . /usr/share/debconf/confmodule
 db_version 2.0
 
-# glitch: this mustn't be in /var/run/
-if test -f /var/run/refcount_adjustments.dat; then
-    mv /var/run/refcount_adjustments.dat /etc/citadel/
-fi
+move_file()
+{
+	[ ! -f $1 ] && return
+	[ -f $2 ] && return
+	mv -f $1 $2
+}
+
 case "$1" in
     configure)
         chown -R citadel:citadel /etc/citadel
@@ -33,6 +36,7 @@
         export CREATE_XINETD_ENTRY=no
         export CREATE_INITTAB_ENTRY=no
         export NO_INIT_SCRIPTS=yes
+
         echo "applying your settings."
         /usr/lib/citadel-server/setup -q
 
@@ -69,6 +73,12 @@
             sleep 1
         done
 
+	move_file /var/run/refcount_adjustments.dat /var/lib/citadel/data/refcount_adjustments.dat
+	move_file /etc/citadel/refcount_adjustments.dat /var/lib/citadel/data/refcount_adjustments.dat
+	move_file /etc/citadel/citadel.control /var/lib/citadel/data/citadel.control
+	move_file /etc/citadel/citadel.config /var/lib/citadel/data/citadel.config
+	move_file /etc/citadel/netconfigs /var/lib/citadel/data/netconfigs
+
         db_stop
     ;;
 




More information about the Pkg-citadel-commit mailing list