Updated scripts

This commit is contained in:
delvedor
2019-03-19 11:24:13 +01:00
parent 46f1436b68
commit fbba50ea6f
2 changed files with 7 additions and 1 deletions

View File

@ -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 \

View File

@ -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))