25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

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

View File

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