Create spool directory at start if not exists

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

View File

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