aboutsummaryrefslogtreecommitdiffstats
path: root/src/install.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'src/install.coffee')
-rw-r--r--src/install.coffee16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/install.coffee b/src/install.coffee
deleted file mode 100644
index 7ba2449d..00000000
--- a/src/install.coffee
+++ /dev/null
@@ -1,16 +0,0 @@
-db = require("./redis")
-bcrypt = require('bcryptjs')
-
-db.get("user:admin", (err, res) ->
- if !res
- bcrypt.hash('admin', 12, (err, hash) ->
- db.sadd("users","user:admin")
- db.hmset("user:admin",
- username: 'admin'
- password: hash,
- , ->
- console.log("Created admin user with password 'admin'")
- process.exit()
- )
- )
-)