ubuntu-2204-graylog/0010-install-opensearch.sh
Eliezer Croitoru 79aea6bf40 1
2024-01-08 00:30:05 +02:00

13 lines
437 B
Bash
Executable File

#!/usr/bin/env bash
wget "https://artifacts.opensearch.org/publickeys/opensearch.pgp" -O "opensearch.pgp"
cat "opensearch.pgp"| gpg --dearmor --batch --yes -o /usr/share/keyrings/opensearch-keyring
echo "deb [signed-by=/usr/share/keyrings/opensearch-keyring] https://artifacts.opensearch.org/releases/bundle/opensearch/2.x/apt stable main" | tee /etc/apt/sources.list.d/opensearch-2.x.list
apt update && apt install opensearch -y