Blame rabbitmq-server-release-0001-Don-t-use-templates.patch

727470
From: Peter Lemenkov <lemenkov@gmail.com>
727470
Date: Thu, 8 Feb 2018 17:06:41 +0300
727470
Subject: [PATCH] Don't use templates
727470
727470
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
727470
727470
diff --git a/scripts/rabbitmq-script-wrapper b/scripts/rabbitmq-script-wrapper
727470
index f7333dc..801323b 100644
727470
--- a/scripts/rabbitmq-script-wrapper
727470
+++ b/scripts/rabbitmq-script-wrapper
727470
@@ -30,14 +30,14 @@ if [ `id -u` = `id -u rabbitmq` -a "$SCRIPT" = "rabbitmq-server" ] ; then
727470
     RABBITMQ_SCRIPTS_DIR=$(dirname "$RABBITMQ_ENV")
727470
     . "$RABBITMQ_ENV"
727470
 
727470
-    exec /usr/lib/rabbitmq/bin/rabbitmq-server "$@" @STDOUT_STDERR_REDIRECTION@
727470
+    exec /usr/lib/rabbitmq/bin/rabbitmq-server "$@"
727470
 elif [ \( `id -u` = `id -u rabbitmq` -a "$SCRIPT" != "rabbitmq-plugins" \) -o \( `id -u` = 0 -a "$SCRIPT" = "rabbitmq-plugins" \) ] ; then
727470
     if [ -f $PWD/.erlang.cookie ] ; then
727470
         export HOME=.
727470
     fi
727470
     exec /usr/lib/rabbitmq/bin/${SCRIPT} "$@"
727470
 elif [ `id -u` = 0 ] ; then
727470
-    @SU_RABBITMQ_SH_C@ "/usr/lib/rabbitmq/bin/${SCRIPT} ${CMDLINE}"
727470
+    su rabbitmq -s /bin/sh -c "/usr/lib/rabbitmq/bin/${SCRIPT} ${CMDLINE}"
727470
 else
727470
     /usr/lib/rabbitmq/bin/${SCRIPT}
727470
     echo