X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fdebian%2Fcitadel-server.postinst;h=1948720afdf7c1ad198898ad7c2cd8270726bba2;hb=b7f0cf89d557c6c59b3363377bafc4ae93f58cb4;hp=ac5aa2d07021dbaa1f04253afbd84b0a24d789d9;hpb=5f89362ae2889304de960b05d1672363e0d733d8;p=citadel.git diff --git a/citadel/debian/citadel-server.postinst b/citadel/debian/citadel-server.postinst index ac5aa2d07..1948720af 100644 --- a/citadel/debian/citadel-server.postinst +++ b/citadel/debian/citadel-server.postinst @@ -7,6 +7,7 @@ set -e # Use debconf. . /usr/share/debconf/confmodule +db_version 2.0 case "$1" in configure) @@ -18,11 +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 - + 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