mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 04:58:50 +00:00
5125978f60
We rely on command extensions in our scripts but we do not actually guarantee that they are enabled (usually they are, by default, but they can be disabled outside of our control). This commit ensures that they are enabled. Relates elastic/x-pack-elasticsearch#2307 Original commit: elastic/x-pack-elasticsearch@a5eec8ca7b
24 lines
620 B
Batchfile
24 lines
620 B
Batchfile
@echo off
|
|
|
|
rem Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
rem or more contributor license agreements. Licensed under the Elastic License;
|
|
rem you may not use this file except in compliance with the Elastic License.
|
|
|
|
setlocal enabledelayedexpansion
|
|
setlocal enableextensions
|
|
|
|
call "%~dp0..\elasticsearch-env.bat" || exit /b 1
|
|
|
|
call "%~dp0x-pack-env.bat" || exit /b 1
|
|
|
|
%JAVA% ^
|
|
%ES_JAVA_OPTS% ^
|
|
-Des.path.home="%ES_HOME%" ^
|
|
-Des.path.conf="%ES_PATH_CONF%" ^
|
|
-cp "%ES_CLASSPATH%" ^
|
|
org.elasticsearch.xpack.security.authc.esnative.tool.SetupPasswordTool ^
|
|
%*
|
|
|
|
endlocal
|
|
endlocal
|