From fbba50ea6f24d52663e4f1b4699b8f3d8631c0cd Mon Sep 17 00:00:00 2001 From: delvedor Date: Tue, 19 Mar 2019 11:24:13 +0100 Subject: [PATCH] Updated scripts --- scripts/es-docker.sh | 1 + scripts/run.js | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/es-docker.sh b/scripts/es-docker.sh index 257474553..c1a130296 100755 --- a/scripts/es-docker.sh +++ b/scripts/es-docker.sh @@ -6,6 +6,7 @@ exec docker run \ -e "path.repo=/tmp" \ -e "repositories.url.allowed_urls=http://snapshot.*" \ -e "discovery.type=single-node" \ + -e "xpack.security.enabled=false" \ -p 9200:9200 \ --network=elastic \ --name=elasticsearch \ diff --git a/scripts/run.js b/scripts/run.js index 23839c175..0254a84bd 100644 --- a/scripts/run.js +++ b/scripts/run.js @@ -62,7 +62,12 @@ function start (opts) { } const apiFolderContents = readdirSync(apiFolder) - const xPackFolderContents = readdirSync(xPackFolder) + var xPackFolderContents = [] + try { + xPackFolderContents = readdirSync(xPackFolder) + } catch (err) { + xPackFolderContents = [] + } apiFolderContents.forEach(generateApiFile(apiFolder, log)) xPackFolderContents.forEach(generateApiFile(xPackFolder, log))