From 74fca45a9f0a923bfca72806bbcb42bc101c077a Mon Sep 17 00:00:00 2001 From: j Date: Fri, 8 Dec 2023 16:17:21 +0000 Subject: [PATCH] use /etc/apt/trusted.gpg.d/ instead of apt-key add --- vm/install_elasticsearch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/install_elasticsearch.sh b/vm/install_elasticsearch.sh index bfd1970f..594e4628 100755 --- a/vm/install_elasticsearch.sh +++ b/vm/install_elasticsearch.sh @@ -1,5 +1,5 @@ #!/bin/sh -curl -sL https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - +curl -sL https://artifacts.elastic.co/GPG-KEY-elasticsearch > /etc/apt/trusted.gpg.d/elasticsearch.asc echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" > /etc/apt/sources.list.d/elasticsearch.list apt-get update -qq apt-get -y install elasticsearch