]> granicus.if.org Git - ejabberd/commitdiff
Respect INSTALLUSER when creating spool directory
authorChristophe Romain <christophe.romain@process-one.net>
Thu, 1 Jun 2017 15:48:44 +0000 (17:48 +0200)
committerChristophe Romain <christophe.romain@process-one.net>
Thu, 1 Jun 2017 15:48:44 +0000 (17:48 +0200)
ejabberdctl.template

index d03de6640be99833b36955bfe276225f5a5a5a08..303c8c044e62e218c32f8b2fd27b64b29bcc3d0c 100755 (executable)
@@ -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