Files
tosca-parser/toscaparser/tests/data/CSAR/tosca_elk/Scripts/mongodb/create.sh
spzala 0a1568ba38 Redefine respository structure
Change the file structure to make appropriate for stand alone parser.

Change-Id: I6d5259b61b1cd82949262fee4930fa66703ad036
2015-08-25 08:18:39 -07:00

15 lines
452 B
Bash

#!/bin/bash
# This script installs mongodb
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.0.list
apt-get update
apt-get install -y mongodb-org
#Wait for mongodb initialization
while [[ ! -d "/var/lib/mongodb/_tmp" ]]; do
echo "Waiting for mongodb initialization ..."
sleep 5
done