diff --git a/ejabberdctl.template b/ejabberdctl.template index d03de6640..303c8c044 100755 --- a/ejabberdctl.template +++ b/ejabberdctl.template @@ -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