File tree Expand file tree Collapse file tree 4 files changed +9
-12
lines changed Expand file tree Collapse file tree 4 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,4 @@ REM PLUGINS_DIR="${RABBITMQ_HOME}/plugins"
46
46
for /f " delims=" %%F in (" !TDP0! ..\plugins" ) do set PLUGINS_DIR = %%~dpsF%%~nF%%~xF
47
47
48
48
REM CONF_ENV_FILE=${SYS_PREFIX}/etc/rabbitmq/rabbitmq-env.conf
49
- if " !RABBITMQ_CONF_ENV_FILE! " == " " (
50
- set RABBITMQ_CONF_ENV_FILE = !RABBITMQ_BASE! \rabbitmq-env-conf.bat
51
- )
49
+ set CONF_ENV_FILE = !RABBITMQ_BASE! \rabbitmq-env-conf.bat
Original file line number Diff line number Diff line change @@ -65,20 +65,15 @@ RABBITMQ_HOME="$(rmq_realpath "${RABBITMQ_SCRIPTS_DIR}/..")"
65
65
# # Common defaults
66
66
SERVER_ERL_ARGS=" +P 1048576"
67
67
68
- # warn about old rabbitmq.conf file, if no new one
69
- if [ -f /etc/rabbitmq/rabbitmq.conf ] && \
70
- [ ! -f ${CONF_ENV_FILE} ] ; then
71
- echo -n " WARNING: ignoring /etc/rabbitmq/rabbitmq.conf -- "
72
- echo " location has moved to ${CONF_ENV_FILE} "
73
- fi
74
-
75
68
# We save the current value of $RABBITMQ_PID_FILE in case it was set by
76
69
# an init script. If $CONF_ENV_FILE overrides it again, we must ignore
77
70
# it and warn the user.
78
71
saved_RABBITMQ_PID_FILE=$RABBITMQ_PID_FILE
79
72
80
73
# # Get configuration variables from the configure environment file
81
- [ -f ${CONF_ENV_FILE} ] && . ${CONF_ENV_FILE} || true
74
+ [ " x" = " x$RABBITMQ_CONF_ENV_FILE " ] && RABBITMQ_CONF_ENV_FILE=${CONF_ENV_FILE}
75
+
76
+ [ -f ${RABBITMQ_CONF_ENV_FILE} ] && . ${RABBITMQ_CONF_ENV_FILE} || true
82
77
83
78
if [ " $saved_RABBITMQ_PID_FILE " -a \
84
79
" $saved_RABBITMQ_PID_FILE " != " $RABBITMQ_PID_FILE " ]; then
Original file line number Diff line number Diff line change @@ -47,6 +47,10 @@ REM set SERVER_ERL_ARGS=+P 1048576
47
47
48
48
REM ## Get configuration variables from the configure environment file
49
49
REM [ -f ${CONF_ENV_FILE} ] && . ${CONF_ENV_FILE} || true
50
+ if " !RABBITMQ_CONF_ENV_FILE! " == " " (
51
+ set RABBITMQ_CONF_ENV_FILE = !CONF_ENV_FILE!
52
+ )
53
+
50
54
if exist " !RABBITMQ_CONF_ENV_FILE! " (
51
55
call " !RABBITMQ_CONF_ENV_FILE! "
52
56
)
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ check_not_empty() {
187
187
eval value=\$ $name
188
188
if [ -z " $value " ]; then
189
189
echo " Error: ENV variable should be defined: $1 .
190
- Please check rabbitmq-env, rabbitmq-defaults, and $CONF_ENV_FILE script files"
190
+ Please check rabbitmq-env, rabbitmq-defaults, and ${RABBITMQ_CONF_ENV_FILE} script files"
191
191
exit 78
192
192
fi
193
193
}
You can’t perform that action at this time.
0 commit comments