From 5cf807eddb30c46c8c84f93ac23bcd8085eb46ed Mon Sep 17 00:00:00 2001 From: Steven Mondji-Lerider Date: Wed, 26 Sep 2012 12:22:10 +0000 Subject: [PATCH] bugfixing --- install/upgrades/1.1.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install/upgrades/1.1.sh b/install/upgrades/1.1.sh index 0ff23efd..0f11a4c2 100644 --- a/install/upgrades/1.1.sh +++ b/install/upgrades/1.1.sh @@ -16,12 +16,17 @@ if [ `id -u` -ne 0 ]; then exit 1 fi +. "$CONFIG_FILE" + fix_mail() { read LOGIN GID || true while [ "$LOGIN" ]; do INITIALE=`echo $LOGIN |cut -c1` - REP="$ALTERNC_LOC/mail/$INITIALE/$LOGIN/" + MAIL=$(echo $LOGIN |sed -e 's/\@/_/') + REP="$ALTERNC_LOC/mail/$INITIALE/$MAIL/" chown --recursive $GID:vmail "$REP" + read LOGIN GID || true + done } query="select user,userdb_gid from dovecot_view"