changeset 1 | f497bf96ddc3 |
0:fcbf2f8a91fc | 1:f497bf96ddc3 |
---|---|
1 #!/bin/bash |
|
2 |
|
3 set -e |
|
4 src=elastic |
|
5 |
|
6 cmd="curl -o /usr/share/keyrings/$src.asc https://artifacts.elastic.co/GPG-KEY-elasticsearch" |
|
7 eval $cmd |
|
8 |
|
9 cat <<EOF >/etc/apt/sources.list.d/$src.list |
|
10 # https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html |
|
11 # For new GPG key use: |
|
12 # $cmd |
|
13 |
|
14 deb [arch=amd64 signed-by=/usr/share/keyrings/$src.asc] https://artifacts.elastic.co/packages/8.x/apt stable main |
|
15 EOF |