aboutsummaryrefslogtreecommitdiffstats
path: root/src/install.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2014-07-31 21:06:54 -0700
committerAdam Soltys <[email protected]>2014-07-31 21:06:54 -0700
commita21ab500e6f2d3f27787b8d992f2d84905c14bd1 (patch)
treec17adfb3ca7f62919b65dd9aab8ab8392ee2be4e /src/install.js
parent7c5dfc8d51efe4df4e67f86f33c489a320fcb8f9 (diff)
downloadcoinos-server-a21ab500e6f2d3f27787b8d992f2d84905c14bd1.tar.gz
coinos-server-a21ab500e6f2d3f27787b8d992f2d84905c14bd1.zip
Remove js files from src
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);