Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Ubuntu 22.04 Mongodb support #23

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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