aboutsummaryrefslogtreecommitdiffstats
path: root/src/install.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/install.js')
-rw-r--r--src/install.js23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/install.js b/src/install.js
deleted file mode 100644
index 088d593e..00000000
--- a/src/install.js
+++ /dev/null
@@ -1,23 +0,0 @@
-(function() {
- var bcrypt, db;
-
- db = require("./redis");
-
- bcrypt = require('bcrypt');
-
- db.get("user:admin", function(err, res) {
- if (!res) {
- return bcrypt.hash('admin', 12, function(err, hash) {
- db.sadd("users", "user:admin");
- return db.hmset("user:admin", {
- username: 'admin',
- password: hash
- }, function() {
- console.log("Created admin user with password 'admin'");
- return process.exit();
- });
- });
- }
- });
-
-}).call(this);