mirror of
https://github.com/cgzirim/seek-tune.git
synced 2025-12-19 09:54:22 +00:00
Update BeforeInstall.sh
This commit is contained in:
parent
8134a77db8
commit
a7c77632d3
1 changed files with 11 additions and 10 deletions
|
|
@ -25,7 +25,8 @@ sudo apt -y install nodejs
|
||||||
sudo apt -y install npm
|
sudo apt -y install npm
|
||||||
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
|
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
|
||||||
|
|
||||||
# install MongoDB
|
# Install MongoDB only if not already present
|
||||||
|
if [ ! -d "/usr/bin/mongod" ]; then
|
||||||
sudo apt-get install gnupg curl
|
sudo apt-get install gnupg curl
|
||||||
curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | \
|
curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | \
|
||||||
sudo gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg \
|
sudo gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg \
|
||||||
|
|
@ -33,5 +34,5 @@ curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | \
|
||||||
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list
|
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y mongodb-org
|
sudo apt-get install -y mongodb-org
|
||||||
sudo apt-get install -y mongod
|
|
||||||
sudo apt-get install -y mongosh
|
sudo apt-get install -y mongosh
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue