]> granicus.if.org Git - ejabberd/commitdiff
inet_dist_use_interface requires argument quoting
authorChristophe Romain <christophe.romain@process-one.net>
Wed, 19 Jun 2013 15:28:05 +0000 (17:28 +0200)
committerChristophe Romain <christophe.romain@process-one.net>
Wed, 19 Jun 2013 15:28:05 +0000 (17:28 +0200)
ejabberdctl.template

index 252373c327df52d530fa3c9e95ae7c3108bd46c2..b0f5a4b3fdaf5d294c7f66c7cf4bda1a0e9bfc11 100755 (executable)
@@ -116,9 +116,9 @@ fi
 if [ "$INET_DIST_INTERFACE" != "" ] ; then
     INET_DIST_INTERFACE2="$(echo $INET_DIST_INTERFACE | sed 's/\./,/g')"
     if [ "$INET_DIST_INTERFACE" != "$INET_DIST_INTERFACE2" ] ; then
-       INET_DIST_INTERFACE2="{$INET_DIST_INTERFACE2}"
+        INET_DIST_INTERFACE2="{$INET_DIST_INTERFACE2}"
     fi
-    KERNEL_OPTS="${KERNEL_OPTS} -kernel inet_dist_use_interface $INET_DIST_INTERFACE2"
+    KERNEL_OPTS="${KERNEL_OPTS} -kernel inet_dist_use_interface \"${INET_DIST_INTERFACE2}\""
 fi
 if [ "$ERLANG_NODE" = "${ERLANG_NODE%.*}" ] ; then
     NAME="-sname"