diff --git a/script-cfg/06-InstallFunctions.cfg b/script-cfg/06-InstallFunctions.cfg index 4393b461fb..1d6f7cc2b8 100644 --- a/script-cfg/06-InstallFunctions.cfg +++ b/script-cfg/06-InstallFunctions.cfg @@ -62,6 +62,16 @@ installMongo() if [ "$1" != "devinstall" ]; then wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/mongo.gpg > /dev/null 2>&1 | tee -a "${currentlog}" echo "$mongodb_repo" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list 2>&1 | tee -a "${currentlog}" + + # Temp fix for Ubuntu 22.04 openssl1.1.1 missing + if [ "$osname" == "ubuntu" ] && [ "$fullrelno" == "22.04" ]; then + wget -q http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1l-1ubuntu1.5_amd64.deb 2>&1 | tee -a "${currentlog}" + wget -q http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl-dev_1.1.1l-1ubuntu1.5_amd64.deb 2>&1 | tee -a "${currentlog}" + sudo dpkg -i libssl1.1_1.1.1l-1ubuntu1.5_amd64.deb + sudo dpkg -i libssl-dev_1.1.1l-1ubuntu1.5_amd64.deb + rm libssl1.1_1.1.1l-1ubuntu1.5_amd64 + rm libssl-dev_1.1.1l-1ubuntu1.5_amd64.deb + fi sudo apt-get update && sudo apt-get install -y mongodb-org 2>&1 | tee -a "${currentlog}" sudo systemctl enable mongod 2>&1 | tee -a "${currentlog}" sudo systemctl restart mongod 2>&1 | tee -a "${currentlog}"