Use bionic package of libssl1.1
Instead of manually downloading the package and having to keep that url up-to-date. This patch switches to just using the bionic security repo as a source. Change-Id: I81383955aea253769b02df682e9712233da77c26
This commit is contained in:
parent
54aed6be0f
commit
c4502d1593
@ -180,9 +180,9 @@ function configure_mongodb {
|
||||
if [[ $ubuntu_version == '22.04' ]]; then
|
||||
wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key add -
|
||||
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
|
||||
echo "deb http://security.ubuntu.com/ubuntu bionic-security main" | sudo tee /etc/apt/sources.list.d/bionic-security.list
|
||||
sudo apt update
|
||||
curl -LO http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1~18.04.21_amd64.deb
|
||||
sudo dpkg -i ./libssl1.1_1.1.1-1ubuntu2.1~18.04.21_amd64.deb
|
||||
install_package libssl1.1
|
||||
install_package mongodb-org
|
||||
restart_service mongod
|
||||
else
|
||||
|
@ -37,9 +37,9 @@ ubuntu_version=$(source /etc/os-release ; echo $VERSION_ID)
|
||||
if [[ $ubuntu_version == '22.04' ]]; then
|
||||
wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key add -
|
||||
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
|
||||
echo "deb http://security.ubuntu.com/ubuntu bionic-security main" | sudo tee /etc/apt/sources.list.d/bionic-security.list
|
||||
sudo apt update
|
||||
curl -LO http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1~18.04.21_amd64.deb
|
||||
sudo dpkg -i ./libssl1.1_1.1.1-1ubuntu2.1~18.04.21_amd64.deb
|
||||
sudo apt install -y libssl1.1
|
||||
sudo apt install -y mongodb-org
|
||||
sudo systemctl restart mongod
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user