bugfixing stderr redirection

This commit is contained in:
Steven Mondji-Lerider 2013-02-22 16:59:04 +00:00
parent bdd51cd353
commit 7197f9b4e0
1 changed files with 3 additions and 3 deletions

View File

@ -57,11 +57,11 @@ case "$1" in
fi
test -d "$VMAIL_HOME" || mkdir -p "$VMAIL_HOME"
chown vmail:vmail "$VMAIL_HOME"
chown vmail:vmail "$VMAIL_HOME"/* || true # It may be empty
chown vmail:vmail "$VMAIL_HOME"/* 2>/dev/null || true # It may be empty
chmod u+rxw "$VMAIL_HOME"
chmod u+rxw "$VMAIL_HOME"/* || true # It may be empty
chmod u+rxw "$VMAIL_HOME"/* 2>/dev/null || true # It may be empty
chmod g+rxw "$VMAIL_HOME"
chmod g+rxw "$VMAIL_HOME"/* || true # It may be empty
chmod g+rxw "$VMAIL_HOME"/* 2>/dev/null || true # It may be empty
# build local.sh if it does not exist
if [ ! -f $CONFIGFILE ]; then