summaryrefslogtreecommitdiff
path: root/ejabberdctl.template
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2017-06-01 17:48:44 +0200
committerChristophe Romain <christophe.romain@process-one.net>2017-06-01 17:48:44 +0200
commitde10a7a8ce692925feed2b839dd7f05c51d798f6 (patch)
treee5231ef60619ff5726fdcd09ed1687fd4e330f54 /ejabberdctl.template
parentCreate spool directory at start if not exists (diff)
Respect INSTALLUSER when creating spool directory
Diffstat (limited to '')
-rwxr-xr-xejabberdctl.template2
1 files changed, 1 insertions, 1 deletions
diff --git a/ejabberdctl.template b/ejabberdctl.template
index d03de664..303c8c04 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