forked from ScoopInstaller/Extras
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathelasticsearch.json
56 lines (56 loc) · 1.92 KB
/
elasticsearch.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
"homepage": "https://www.elastic.co/products/elasticsearch",
"version": "5.6.1",
"url": "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.6.1.zip",
"hash": "sha1:ead35fb9b9d70d45d7d606fcc6c4e3cc5678b752",
"extract_dir": "elasticsearch-5.6.1",
"bin": [
[
"bin\\elasticsearch.bat",
"elasticsearch"
],
[
"bin\\elasticsearch-keystore.bat",
"elasticsearch-keystore"
],
[
"bin\\elasticsearch-plugin.bat",
"elasticsearch-plugin"
],
[
"bin\\elasticsearch-service.bat",
"elasticsearch-service"
],
[
"bin\\elasticsearch-translog.bat",
"elasticsearch-translog"
]
],
"persist": [
"config",
"plugins"
],
"post_install": "
# we have to overwrite SCRIPT_DIR because elasticsearch.in.bat doesn't care if SCRIPT_DIR or ES_HOME are already set ...
(gc \"$original_dir\\bin\\elasticsearch.in.bat\") | % { $_ -replace 'set SCRIPT_DIR=%~dp0', \"set SCRIPT_DIR=$original_dir\" } | sc \"$original_dir\\bin\\elasticsearch.in.bat\"
# use persistent data/logs directory
(gc \"$dir\\config\\elasticsearch.yml\") | % { $_ -replace '#path.data: /path/to/data', \"path.data: $persist_dir\\data\" } | % { $_ -replace '#path.logs: /path/to/logs', \"path.logs: $persist_dir\\logs\" } | sc \"$dir\\config\\elasticsearch.yml\"
",
"suggest": {
"JDK": [
"extras/oraclejdk",
"openjdk"
]
},
"checkver": {
"url": "https://www.elastic.co/downloads/past-releases",
"re": "elasticsearch-([\\d.]+).zip.sha1"
},
"autoupdate": {
"url": "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-$version.zip",
"extract_dir": "elasticsearch-$version",
"hash": {
"url": "$url.sha1"
}
}
}