mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-15 06:49:56 +00:00
bug5941: added MongoDB 5.0 setup function in imageupgrade_functions.sh
This commit is contained in:
1 parent
c94948d3df
commit
b275ea761f
1 file changed
+15
@@ -466,3 +466,18 @@ EOF
|
||||
sudo yum -y update
|
||||
sudo yum -y install mongodb-org-server mongodb-org-shell mongodb-org-tools
|
||||
}
|
||||
|
||||
setup_mongo_5_0() {
|
||||
# Install MongoDB 5.0 and configure as replica set "live"
|
||||
sudo su - -c "cat << EOF >/etc/yum.repos.d/mongodb-org.5.0.repo
|
||||
[mongodb-org-5.0]
|
||||
name=MongoDB Repository
|
||||
baseurl=https://repo.mongodb.org/yum/amazon/2/mongodb-org/5.0/x86_64/
|
||||
gpgcheck=1
|
||||
enabled=1
|
||||
gpgkey=https://www.mongodb.org/static/pgp/server-5.0.asc
|
||||
EOF
|
||||
"
|
||||
sudo yum -y update
|
||||
sudo yum -y install mongodb-org-server mongodb-org-shell mongodb-org-tools
|
||||
}
|
||||
Reference in new issue
Block a user