Changes and additions for Drone

This commit is contained in:
nickolasdaniel
2022-03-11 14:50:02 +02:00
committed by Dan Christian Bogos
parent 4472685065
commit 5409f2c60c
15 changed files with 1209 additions and 44 deletions

View File

@@ -0,0 +1,9 @@
db = db.getSiblingDB('cgrates')
db.createUser(
{
user: "cgrates",
pwd: "CGRateS.org",
roles: [ { role: "dbAdmin", db: "cgrates" } ]
}
)

View File

@@ -0,0 +1,14 @@
#! /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