Skip to content

Commit dab0236

Browse files
committed
fixes to non created groups
1 parent bd45724 commit dab0236

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

install/install_scot.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ function setup_scot_admin {
333333
HASH=`$SCOT_CONFIG_SRC/mongodb/passwd.pl`
334334

335335
mongo scot-prod $SCOT_CONFIG_SRC/mongodb/admin_user.js
336+
mongo scot-prod $SCOT_CONFIG_SRC/mongodb/defaultgroups.js
336337
mongo scot-prod --eval "db.user.update({username:'admin'}, {$set:{pwhash:'$HASH'}})"
337338
fi
338339
}

install/src/mongodb/admin_user.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ db.user.insert({
2121
"last_activity_check" : 4
2222
})
2323
db.user.ensureIndex({username: 1});
24+

install/src/mongodb/indexes.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,6 @@ db.guide.ensureIndex ( { "applies_to": 1} );
7575

7676
db.user.ensureIndex ( {"id": 1},{unique: true, dropDups:true} );
7777
db.user.ensureIndex ( {"username": 1} );
78+
79+
db.getCollection('group').ensureIndex({"name": 1},{unique: true, dropDups:true});
80+

0 commit comments

Comments
 (0)