aboutsummaryrefslogtreecommitdiffstats
path: root/install.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2018-03-15 22:25:40 -0700
committerAdam Soltys <[email protected]>2018-03-15 22:25:40 -0700
commit112e9ec9b71c1930ca51d52db58acc58ee36088c (patch)
treeb0b74c065b202a97f6ed0316a1e5bb54d77ff2a3 /install.js
parent869b33813e72689c053ba8505c8806129ec3c7d5 (diff)
downloadcoinos-server-112e9ec9b71c1930ca51d52db58acc58ee36088c.tar.gz
coinos-server-112e9ec9b71c1930ca51d52db58acc58ee36088c.zip
clean up unused files
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);