diff options
author | Mateja <mail@matejamaric.com> | 2021-05-31 13:01:23 +0200 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-05-31 13:01:23 +0200 |
commit | 930e89b5a1aed4ea3d2acb1ff37b8740dda4a62b (patch) | |
tree | 63565eaa4ee1eedfb4c11208ed7df25a3c543de0 | |
parent | a7acd125b25602767c14818cdcf935c71438ed9f (diff) | |
download | setup-scripts-930e89b5a1aed4ea3d2acb1ff37b8740dda4a62b.tar.gz setup-scripts-930e89b5a1aed4ea3d2acb1ff37b8740dda4a62b.zip |
Installing MongoDB...
-rwxr-xr-x | setup.sh | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -13,6 +13,7 @@ read -p "Do you want to install Nginx? [y/n]: " nginx_install read -p "Do you want to install MariaDB? [y/n]: " mariadb_install read -p "Do you want to install PHP and Composer? [y/n]: " php_install read -p "Do you want to install Node.js? [y/n]: " node_install +read -p "Do you want to install MongoDB? [y/n]: " mongodb_install read -p "Do you want to install Hugo? [y/n]: " hugo_install read -p "Do you want to install Aerc? [y/n]: " aerc_install @@ -202,6 +203,16 @@ then sudo apt-get install -y nodejs fi +if [[ $mongodb_install =~ ^[Yy]$ ]] +then + echo "Installing MongoDB..." + wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add - + echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list + sudo apt update + sudo apt install -y mongodb-org + sudo systemctl enable --now mongod +fi + if [[ $hugo_install =~ ^[Yy]$ ]] then echo "Installing Hugo..." |