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

meskes at alioth.debian.org meskes at alioth.debian.org
Sun Mar 1 13:33:09 UTC 2009


Author: meskes
Date: 2009-03-01 13:33:09 +0000 (Sun, 01 Mar 2009)
New Revision: 241

Modified:
   citadel/trunk/debian/citadel-server.postinst
Log:
Change order of commands so files get correctly moved.



Modified: citadel/trunk/debian/citadel-server.postinst
===================================================================
--- citadel/trunk/debian/citadel-server.postinst	2009-03-01 13:02:53 UTC (rev 240)
+++ citadel/trunk/debian/citadel-server.postinst	2009-03-01 13:33:09 UTC (rev 241)
@@ -19,6 +19,18 @@
         chown -R citadel:citadel /etc/citadel
         chown -R citadel:citadel /var/lib/citadel /var/spool/citadel
 
+        if test -S /var/run/citadel/citadel.socket; then 
+            sendcommand "DOWN"
+        fi
+
+        while test -S /var/run/citadel/citadel.socket; do 
+            sleep 1
+        done
+
+	move_file /var/run/refcount_adjustments.dat /etc/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
+
         db_get citadel/Administrator && admin="$RET"
         db_get citadel/ServerIPAddress && ip_addr="$RET"
         db_get citadel/LoginType && deb_enable_unix_auth="$RET"
@@ -65,20 +77,6 @@
             fi
 	fi
 
-        if test -S /var/run/citadel/citadel.socket; then 
-            sendcommand "DOWN"
-        fi
-
-        while test -S /var/run/citadel/citadel.socket; do 
-            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