mirror of
https://github.com/cgzirim/seek-tune.git
synced 2025-12-17 08:54:19 +00:00
Update before_install.sh
This commit is contained in:
parent
b4ffd7caef
commit
6ce40e9393
1 changed files with 0 additions and 8 deletions
|
|
@ -1,23 +1,16 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
touch /home/ubuntu/status.txt
|
||||
echo "A" >> /home/ubuntu/status.txt
|
||||
|
||||
sudo apt-get -y update
|
||||
|
||||
# install golang
|
||||
sudo apt-get -y install golang-go
|
||||
echo "D" >> /home/ubuntu/status.txt
|
||||
|
||||
# install nodeJS and npm
|
||||
sudo apt -y install nodejs
|
||||
echo "E" >> /home/ubuntu/status.txt
|
||||
sudo apt -y install npm
|
||||
echo "F" >> /home/ubuntu/status.txt
|
||||
|
||||
# Install MongoDB only if not already present
|
||||
if [ ! -f "/usr/bin/mongod" ]; then
|
||||
echo "G" >> /home/ubuntu/status.txt
|
||||
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 \
|
||||
|
|
@ -26,7 +19,6 @@ if [ ! -f "/usr/bin/mongod" ]; then
|
|||
sudo apt-get update
|
||||
sudo apt-get install -y mongodb-org
|
||||
sudo apt-get install -y mongosh
|
||||
echo "H" >> /home/ubuntu/status.txt
|
||||
fi
|
||||
|
||||
sudo rm -rf /home/ubuntu/song-recognition
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue