Skip to content

Commit 337de7e

Browse files
committed
Merge branch 'master' of baltig.sandia.gov:scot/SCOT
2 parents 84a1b3c + ee0571d commit 337de7e

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

demo/reset.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ db.user.drop();
2020
db.apikey.drop();
2121
db.signature.drop();
2222
db.sigbody.drop();
23+
db.getCollection('group').drop()
2324

2425
print ("Creating indexes...");
26+
db.getCollection('group').ensureIndex({"name": 1},{unique: true, dropDups:true});
2527
db.alertgroup.ensureIndex( { "id": 1}, {unique: true, dropDups:true} );
2628
db.alertgroup.ensureIndex( { "message_id": 1} );
2729
db.alertgroup.ensureIndex( { "updated": 1} );

docker-configs/mongodb/set_mongodb_config.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ set='$set'
2121
# users if we're recreating the container (provided we're using some persistent storage)
2222

2323
if [ ! -f /var/lib/mongodb/mongodb_password_set ]; then
24+
mongo scot-prod --host mongodb /opt/scot/install/src/mongodb/reset.js
2425
mongo scot-prod --host mongodb /opt/scot/install/src/mongodb/admin_user.js
2526
mongo scot-prod --host mongodb --eval "db.user.update({username:'admin'}, {$set:{pwhash:'$HASH'}}, {multi:true})"
2627
echo "Mapping set for Mongo" > /var/lib/mongodb/mongodb_password_set

install/src/mongodb/reset.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ db.apikey.drop();
2525
db.handler.drop();
2626
db.stat.drop();
2727
db.entitytype.drop();
28+
db.getCollection('group').drop()
2829

2930
print ("Creating indexes...");
30-
load("./src/mongodb/indexes.js");
31+
load("./indexes.js");
3132
print ("Zero-ing the nexid collection...");
32-
load("./src/mongodb/zero_nextid.js");
33+
load("./zero_nextid.js");
3334

public/admin/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
<div class="navbar-inner">
3131
<div class="container">
3232
<ul class="nav" id="admin_nav">
33+
<li><a href=/>Home</li>
3334
<li class="active"><a href="#info">Info</a></li>
3435
<!--<li><a href="#backup">Backup</a></li>-->
3536
<li><a href="#auth">Auth</a></li>

public/scot.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)