File: create.sh

package info (click to toggle)
python-tosca-parser 2.13.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,920 kB
  • sloc: python: 11,185; sh: 144; makefile: 26
file content (14 lines) | stat: -rwxr-xr-x 452 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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