Skip to content

Commit 9a1f21f

Browse files
Make sure rabbitmqctl.bat arguments are not overwritten
1 parent ab29c09 commit 9a1f21f

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

scripts/rabbitmq-env.bat

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,8 @@ REM setlocal
66
rem Preserve values that might contain exclamation marks before
77
rem enabling delayed expansion
88
set TDP0=%~dp0
9-
set STAR=%*
109
REM setlocal enabledelayedexpansion
1110

12-
REM # Determine where this script is really located (if this script is
13-
REM # invoked from another script, this is the location of the caller)
14-
REM SCRIPT_PATH="$0"
15-
REM while [ -h "$SCRIPT_PATH" ] ; do
16-
REM # Determine if readlink -f is supported at all. TODO clean this up.
17-
REM FULL_PATH=`readlink -f $SCRIPT_PATH 2>/dev/null`
18-
REM if [ "$?" != "0" ]; then
19-
REM REL_PATH=`readlink $SCRIPT_PATH`
20-
REM if expr "$REL_PATH" : '/.*' > /dev/null; then
21-
REM SCRIPT_PATH="$REL_PATH"
22-
REM else
23-
REM SCRIPT_PATH="`dirname "$SCRIPT_PATH"`/$REL_PATH"
24-
REM fi
25-
REM else
26-
REM SCRIPT_PATH=$FULL_PATH
27-
REM fi
28-
REM done
29-
REM set -e
30-
3111
REM SCRIPT_DIR=`dirname $SCRIPT_PATH`
3212
REM RABBITMQ_HOME="${SCRIPT_DIR}/.."
3313
set SCRIPT_DIR=%TDP0%
@@ -58,17 +38,6 @@ if exist "!RABBITMQ_CONF_ENV_FILE!" (
5838
call !RABBITMQ_CONF_ENV_FILE!
5939
)
6040

61-
REM [ "x" = "x$RABBITMQ_USE_LONGNAME" ] && RABBITMQ_USE_LONGNAME=${USE_LONGNAME}
62-
REM if [ "xtrue" = "x$RABBITMQ_USE_LONGNAME" ] ; then
63-
REM RABBITMQ_NAME_TYPE=-name
64-
REM [ "x" = "x$HOSTNAME" ] && HOSTNAME=`env hostname -f`
65-
REM [ "x" = "x$NODENAME" ] && NODENAME=rabbit@${HOSTNAME}
66-
REM else
67-
REM RABBITMQ_NAME_TYPE=-sname
68-
REM [ "x" = "x$HOSTNAME" ] && HOSTNAME=`env hostname`
69-
REM [ "x" = "x$NODENAME" ] && NODENAME=rabbit@${HOSTNAME%%.*}
70-
REM fi
71-
7241
REM Check for the short names here too
7342
if "!RABBITMQ_USE_LONGNAME!"=="" (
7443
if "!USE_LONGNAME!"=="" (

0 commit comments

Comments
 (0)