From 112e9ec9b71c1930ca51d52db58acc58ee36088c Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 15 Mar 2018 22:25:40 -0700 Subject: clean up unused files --- install.js | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 install.js (limited to 'install.js') 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); -- cgit v1.2.3