-
Notifications
You must be signed in to change notification settings - Fork 0
/
mongoinit.js
executable file
·37 lines (33 loc) · 1020 Bytes
/
mongoinit.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
dmeta = {
"name": "Dmeta Server",
"clientId": "dmeta-co3h3j39f",
"clientSecret": "dmeta-38f9d20d22aaepoqi",
"trustedClient": true,
"scope": [""]
}
dportal = {
"name": "Dportal Server",
"clientId": "dportal-c2ss3j39f",
"clientSecret": "dportal-34fw420d2435aepoq",
"trustedClient": true,
"scope": [""]
}
dnext = {
"name": "Dnext Server",
"clientId": "dnext-c45df5fhj",
"clientSecret": "dnext-25ty468f5687afas9",
"trustedClient": true,
"scope": [""]
}
vfoundry = {
"name": "Vfoundry Server",
"clientId": "vfoundry-mr83m30dse",
"clientSecret": "vfoundry-0kejuenva83w",
"trustedClient": true,
"scope": [""]
}
use dsso;
db.clients.update({'clientId':'dmeta-co3h3j39f'}, { $setOnInsert:dmeta}, upsert=true);
db.clients.update({'clientId':'dportal-c2ss3j39f'},{ $setOnInsert: dportal}, upsert=true);
db.clients.update({'clientId':'dnext-c45df5fhj'},{ $setOnInsert: dnext}, upsert=true);
db.clients.update({'clientId':'vfoundry-mr83m30dse'},{ $setOnInsert: vfoundry}, upsert=true);