aboutsummaryrefslogtreecommitdiffstats
path: root/install.js
diff options
context:
space:
mode:
Diffstat (limited to 'install.js')
-rw-r--r--install.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/install.js b/install.js
deleted file mode 100644
index 6432fb1d..00000000
--- a/install.js
+++ /dev/null
@@ -1,21 +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);