From 1c7662f7f107496d9a3cf308da8d63685ac2e9fc Mon Sep 17 00:00:00 2001 From: Vinfall Date: Thu, 20 Oct 2022 13:19:43 +0800 Subject: [PATCH] `apt-key` is deprecated, move keyring to trusted.gpg.d --- tools/setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/setup.sh b/tools/setup.sh index c90ddbc..c4809ef 100644 --- a/tools/setup.sh +++ b/tools/setup.sh @@ -25,7 +25,7 @@ else exit 1 fi -wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add - +wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo tee /etc/apt/trusted.gpg.d/mongodb-server-5.0.asc echo "deb [ arch=amd64,arm64 ] $REPO" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list sudo apt update