diff options
| author | jc0b <j@jc0b.computer> | 2020-06-30 18:02:16 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-08-24 19:44:37 +0200 |
| commit | b97d1977d08760b237c645a275be1972a32451b7 (patch) | |
| tree | 55cfdd69a8237411558a3045c9342a014de607f1 /build/configure.sh | |
| parent | 6a4703517e7e1ca5ee2c8d8e0a4c49f32d17c662 (diff) | |
| parent | abb91a93c40ef3577aa953cf6e8c252593e082d4 (diff) | |
Merge branch 'feature/mongodb-migration' of github.com:atlarge-research/opendc-dev into feature/mongodb-migration
Diffstat (limited to 'build/configure.sh')
| -rwxr-xr-x | build/configure.sh | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/build/configure.sh b/build/configure.sh deleted file mode 100755 index 7dda7773..00000000 --- a/build/configure.sh +++ /dev/null @@ -1,23 +0,0 @@ -if [ -z "$MONGO_DB" ]; then - echo "MONGO_DB environment variable not specified" - exit 1 -fi - -if [ -z "$MONGO_DB_USER" ]; then - echo "MONGO_DB_USER environment variable not specified" - exit 1 -fi - -if [ -z "$MONGO_DB_PASSWORD" ]; then - echo "MONGO_DB_PASSWORD environment variable not specified" - exit 1 -fi - -MONGO_COMMAND="mongo $MONGO_DB -h $MONGO_DB_HOST --port $MONGO_DB_PORT -u $MONGO_DB_USERNAME -p $MONGO_DB_PASSWORD --authenticationDatabase $MONGO_DB" - -until eval $MONGO_COMMAND --eval 'db.getCollectionNames();' ; do - echo "MongoDB is unavailable - sleeping" - sleep 1 -done - -echo "MongoDB available" |
