aboutsummaryrefslogtreecommitdiffstats
path: root/install.js
diff options
context:
space:
mode:
Diffstat (limited to 'install.js')
-rw-r--r--install.js21
1 files changed, 2 insertions, 19 deletions
diff --git a/install.js b/install.js
index 0e6256df..088d593e 100644
--- a/install.js
+++ b/install.js
@@ -13,28 +13,11 @@
username: 'admin',
password: hash
}, function() {
- return console.log("Created admin user with password 'admin'");
+ console.log("Created admin user with password 'admin'");
+ return process.exit();
});
});
}
});
- db.sismember("mts", "mt:rest", function(err, res) {
- if (!res) {
- db.hmset("mt:rest", {
- code: "rest",
- label: "Restaurant/Bar"
- }, function() {
- return db.sadd("mts", "mt:rest");
- });
- db.hmset("mt:coff", {
- code: "rest",
- label: "Coffee Shop"
- }, function() {
- return db.sadd("mts", "mt:coff");
- });
- return console.log("Added merchant types");
- }
- });
-
}).call(this);