-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cli] Add kibana-encryption-keys.bat (#102070)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
- Loading branch information
1 parent
a6bef93
commit 38be1d0
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
src/dev/build/tasks/bin/scripts/kibana-encryption-keys.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
@echo off | ||
|
||
SETLOCAL ENABLEDELAYEDEXPANSION | ||
|
||
set SCRIPT_DIR=%~dp0 | ||
for %%I in ("%SCRIPT_DIR%..") do set DIR=%%~dpfI | ||
|
||
set NODE=%DIR%\node\node.exe | ||
|
||
If Not Exist "%NODE%" ( | ||
Echo unable to find usable node.js executable. | ||
Exit /B 1 | ||
) | ||
|
||
set CONFIG_DIR=%KBN_PATH_CONF% | ||
If [%KBN_PATH_CONF%] == [] ( | ||
set "CONFIG_DIR=%DIR%\config" | ||
) | ||
|
||
IF EXIST "%CONFIG_DIR%\node.options" ( | ||
for /F "usebackq eol=# tokens=*" %%i in ("%CONFIG_DIR%\node.options") do ( | ||
If [!NODE_OPTIONS!] == [] ( | ||
set "NODE_OPTIONS=%%i" | ||
) Else ( | ||
set "NODE_OPTIONS=!NODE_OPTIONS! %%i" | ||
) | ||
) | ||
) | ||
|
||
TITLE Kibana Encryption Keys | ||
"%NODE%" "%DIR%\src\cli_encryption_keys\dist" %* | ||
|
||
:finally | ||
|
||
ENDLOCAL |