]> code.citadel.org Git - citadel.git/blobdiff - citadel/debian/citadel-server.postinst
* more debian build added.
[citadel.git] / citadel / debian / citadel-server.postinst
index 5b10ff3f05b749316b78f611508cad5d9809c07f..1948720afdf7c1ad198898ad7c2cd8270726bba2 100644 (file)
@@ -7,6 +7,7 @@ set -e
 # Use debconf.
 . /usr/share/debconf/confmodule
 
+db_version 2.0
 
 case "$1" in
   configure)
@@ -18,24 +19,10 @@ case "$1" in
                        --gecos "Citadel system user" --shell /bin/sh \
                        --disabled-password citadel
        fi
-       mkdir -p /etc/citadel
-       chown citadel:citadel /etc/citadel
-
-       #: !TODO: should network/systems  go to /etc/citadel?
-       mkdir -p \
-               /var/lib/citadel/data/ \
-               /var/lib/citadel/bio/ \
-               /var/lib/citadel/bitbucket/ \
-               /var/lib/citadel/files/ \
-               /var/lib/citadel/images/ \
-               /var/lib/citadel/info/ \
-               /var/lib/citadel/userpics/ \
-               /var/spool/citadel/network/spoolin \
-               /var/spool/citadel/network/spoolout \
-               /var/spool/citadel/network/spoolsystems 
-
+       chown -R citadel:citadel /etc/citadel
        chown -R citadel:citadel /var/lib/citadel /var/spool/citadel
 
+# we're a bit paranoid here, because of this gave us many errors in the past.
         chown root:root /usr/sbin/chkpwd
         chmod 4755 /usr/sbin/chkpwd