mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Made a symlink to db scripts and modified Dockerfile and entrypoint script for cgrates integration image
This commit is contained in:
committed by
Dan Christian Bogos
parent
a906cf256e
commit
296ba2347c
1
data/docker/integration/scripts/mongo
Symbolic link
1
data/docker/integration/scripts/mongo
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../storage/mongo/
|
||||
@@ -1,9 +0,0 @@
|
||||
db = db.getSiblingDB('cgrates')
|
||||
db.createUser(
|
||||
{
|
||||
user: "cgrates",
|
||||
pwd: "CGRateS.org",
|
||||
roles: [ { role: "dbAdmin", db: "cgrates" } ]
|
||||
}
|
||||
)
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
#! /usr/bin/env sh
|
||||
|
||||
|
||||
mongo --quiet create_user.js
|
||||
cu=$?
|
||||
|
||||
if [ $cu = 0 ]; then
|
||||
echo ""
|
||||
echo "\t+++ CGR-DB successfully set-up! +++"
|
||||
echo ""
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user