mirror of
https://github.com/cgzirim/seek-tune.git
synced 2025-12-18 17:34: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,13 +25,14 @@ sudo apt -y install nodejs
|
|||
sudo apt -y install npm
|
||||
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
|
||||
|
||||
# install MongoDB
|
||||
sudo apt-get install gnupg curl
|
||||
curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | \
|
||||
sudo gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg \
|
||||
--dearmor
|
||||
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 install -y mongodb-org
|
||||
sudo apt-get install -y mongod
|
||||
sudo apt-get install -y mongosh
|
||||
# Install MongoDB only if not already present
|
||||
if [ ! -d "/usr/bin/mongod" ]; then
|
||||
sudo apt-get install gnupg curl
|
||||
curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | \
|
||||
sudo gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg \
|
||||
--dearmor
|
||||
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 install -y mongodb-org
|
||||
sudo apt-get install -y mongosh
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue