#!/bin/sh


# File install_mongodb.sh
echo "Start install MongoDB"

# Add server
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
sudo bash -c 'echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" > /etc/apt/sources.list.d/mongodb-org-3.2.list'

# Update index and install MongoDB
sudo apt-get update
sudo apt-get install -y mongodb-org

# Start process MongoDB
sudo systemctl start mongod
sudo systemctl enable mongod

# Check process MongoDB
sudo systemctl status mongod

echo "End install MongoDB"


nstall_mongodb.sh
echo "Start install MongoDB"

# Add server
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
sudo bash -c 'echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" > /etc/apt/sources.list.d/mongodb-org-3.2.list'

# Update index and install MongoDB
sudo apt-get update
sudo apt-get install -y mongodb-org

# Start process MongoDB
sudo systemctl start mongod
sudo systemctl enable mongod

# Check process MongoDB
sudo systemctl status mongod

echo "End install MongoDB"


--- 
+++ 
@@ -1,4 +1,7 @@
-nstall_mongodb.sh
+#!/bin/sh
+
+
+# File install_mongodb.sh
 echo "Start install MongoDB"
 
 # Add server
Fix script install mongo db
