diff --git a/debian/alternc.postinst b/debian/alternc.postinst index f7a664b6..4ed9c0c3 100644 --- a/debian/alternc.postinst +++ b/debian/alternc.postinst @@ -53,11 +53,15 @@ case "$1" in addgroup --gid 1998 vmail fi if ! getent passwd vmail; then - useradd -g vmail -u 1998 vmail -d "$VMAIL_HOME"/mail -m + useradd -g vmail -u 1998 vmail -d "$VMAIL_HOME" -m fi - chown vmail:vmail "$VMAIL_HOME"/mail "$VMAIL_HOME"/mail/* - chmod u+rxw "$VMAIL_HOME"/mail "$VMAIL_HOME"/mail/* - chmod g+rxw "$VMAIL_HOME"/mail "$VMAIL_HOME"/mail/* + test -d "$VMAIL_HOME" || mkdir -p "$VMAIL_HOME" + chown vmail:vmail "$VMAIL_HOME" + chown vmail:vmail "$VMAIL_HOME"/* || true # It may be empty + chmod u+rxw "$VMAIL_HOME" + chmod u+rxw "$VMAIL_HOME"/* || true # It may be empty + chmod g+rxw "$VMAIL_HOME" + chmod g+rxw "$VMAIL_HOME"/* || true # It may be empty # build local.sh if it does not exist if [ ! -f $CONFIGFILE ]; then diff --git a/debian/changelog b/debian/changelog index 7072943a..fc6baae9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +alternc (3.1~alpha1) experimental; urgency=low + + * menu became dynamic with a class + * /var/alternc disapear to became Debian-compliant + + -- Alan Garcia Mon, 18 Feb 2013 16:09:58 +0100 + alternc (3.0) stable; urgency=low * RELEASE of AlternC 3.0 diff --git a/src/fixperms.sh b/src/fixperms.sh index 21fc466c..900e5f25 100755 --- a/src/fixperms.sh +++ b/src/fixperms.sh @@ -96,7 +96,7 @@ doone() { if [ "$DEBUG" ]; then echo "Setting rights and ownership for user $LOGIN having gid $GID" fi - REP="$(get_html_path_by_name "$name")" + REP="$(get_html_path_by_name "$LOGIN")" # Set the file readable only for the AlternC User mkdir -p "$REP"