apt-key is deprecated, move keyring to trusted.gpg.d

This commit is contained in:
Vinfall 2022-10-20 13:19:43 +08:00
parent 419d8ee15c
commit 1c7662f7f1

View File

@ -25,7 +25,7 @@ else
exit 1 exit 1
fi 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 echo "deb [ arch=amd64,arm64 ] $REPO" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list
sudo apt update sudo apt update