Skip to content

Commit

Permalink
Fixing merge issue. Create advanced config instead of config file for…
Browse files Browse the repository at this point in the history
… use in windows service
  • Loading branch information
Daniil Fedotov committed Mar 29, 2016
1 parent f4db0e8 commit 1089be3
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions scripts/rabbitmq-service.bat
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ if not exist "!RABBITMQ_BASE!" (
)

set ENV_OK=true
CALL :check_not_empty "RABBITMQ_BOOT_MODULE" !RABBITMQ_BOOT_MODULE!
CALL :check_not_empty "RABBITMQ_BOOT_MODULE" !RABBITMQ_BOOT_MODULE!
CALL :check_not_empty "RABBITMQ_NAME_TYPE" !RABBITMQ_NAME_TYPE!
CALL :check_not_empty "RABBITMQ_NODENAME" !RABBITMQ_NODENAME!

Expand Down Expand Up @@ -150,10 +150,11 @@ if ERRORLEVEL 3 (

if not exist "!RABBITMQ_SCHEMA_DIR!\rabbitmq.schema" (
copy "!RABBITMQ_HOME!\priv\schema\rabbitmq.schema" "!RABBITMQ_SCHEMA_DIR!\rabbitmq.schema"
REM Try to create config file, if it doesn't exist
REM It still can fail to be created, but at least not for default install
if not exist "!RABBITMQ_CONFIG_FILE!.config" (
echo []. > !RABBITMQ_CONFIG_FILE!.config
)
REM Try to create advanced config file, if it doesn't exist
REM It still can fail to be created, but at least not for default install
if not exist "!RABBITMQ_ADVANCED_CONFIG_FILE!.config" (
echo []. > !RABBITMQ_ADVANCED_CONFIG_FILE!.config
)

if exist "!RABBITMQ_CONFIG_FILE!.config" (
Expand Down Expand Up @@ -262,7 +263,7 @@ EXIT /B 0
if "%~2"=="" (
ECHO "Error: ENV variable should be defined: %1. Please check rabbitmq-env, rabbitmq-default, and !RABBITMQ_CONF_ENV_FILE! script files. Check also your Environment Variables settings"
set ENV_OK=false
EXIT /B 78
EXIT /B 78
)
EXIT /B 0

Expand Down

0 comments on commit 1089be3

Please sign in to comment.