Bugfix du home de vmail

This commit is contained in:
Steven Mondji-Lerider 2012-08-21 18:20:59 +00:00
parent 259a449f15
commit 27b5fd6b10
1 changed files with 4 additions and 4 deletions

View File

@ -54,11 +54,11 @@ 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"/mail -m
fi
chown -R vmail:vmail $VMAIL_HOME/mail
chmod u+w $VMAIL_HOME/mail
chmod -R g+w $VMAIL_HOME/mail
chown -R vmail:vmail "$VMAIL_HOME"/mail
chmod u+w "$VMAIL_HOME"/mail
chmod -R g+w "$VMAIL_HOME"/mail
# build local.sh if it does not exist
if [ ! -f $CONFIGFILE ]; then