Respect INSTALLUSER when creating spool directory

This commit is contained in:
Christophe Romain 2017-06-01 17:48:44 +02:00
parent 5081a180fa
commit de10a7a8ce
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ check_start()
}
}
} || {
[ -d "$SPOOL_DIR" ] || mkdir -p "$SPOOL_DIR"
[ -d "$SPOOL_DIR" ] || exec_cmd mkdir -p "$SPOOL_DIR"
cd "$SPOOL_DIR" || {
echo "ERROR: ejabberd can not access directory $SPOOL_DIR"
exit 6