Skip to content

Commit

Permalink
Merge pull request #23 from ninjamonkey198206/develop-installer-updat…
Browse files Browse the repository at this point in the history
…e-ws

Added Ubuntu 22.04 Mongodb support
  • Loading branch information
ninjamonkey198206 committed Aug 5, 2022
2 parents d480523 + 5630f77 commit 58f8c0d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions script-cfg/06-InstallFunctions.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 58f8c0d

Please sign in to comment.