From d40a091eda4a4a9d3d6c9e27ea4c0aeea2a7496d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Mon, 15 Feb 2016 15:21:20 +0100 Subject: [PATCH] Another fix for \n in ejabberdctl arguments --- ejabberdctl.template | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ejabberdctl.template b/ejabberdctl.template index 0d1a64292..07395aafd 100755 --- a/ejabberdctl.template +++ b/ejabberdctl.template @@ -31,14 +31,14 @@ if [ "$INSTALLUSER" != "" ] ; then fi done if [ `id -g` -eq `id -g $INSTALLUSER` ] ; then - EXEC_CMD="sh -c" + EXEC_CMD="bash -c" fi if [ "$EXEC_CMD" = "false" ] ; then echo "This command can only be run by root or the user $INSTALLUSER" >&2 exit 4 fi else - EXEC_CMD="sh -c" + EXEC_CMD="bash -c" fi # parse command line parameters @@ -166,7 +166,7 @@ shell_escape() if test -z "$i"; then printf '"" ' else - printf '"%q" ' "$i" | sed 's/\\\\n/\n/g;s/\\\\t/\t/g;s/\\\\r/\r/g' + printf '%q ' "$i" fi done }