fixed install script error

v1.18.x
Julian Lam 11 years ago
parent 7e7497c3bd
commit 569a7178d7

@ -92,7 +92,7 @@ var async = require('async'),
delete config['redis:port'];
delete config['redis:password'];
delete config['redis:database'];
// Add hardcoded values
config.bcrypt_rounds = 12;
config.upload_path = '/public/uploads';
@ -281,7 +281,7 @@ var async = require('async'),
User.create(results.username, results.password, results.email, function (err, uid) {
if (err) {
winston.warn(err.message + ' Please try again.');
return getAdminInfo();
return callback(new Error('invalid-values'));
}
Groups.getGidFromName('Administrators', function (err, gid) {

Loading…
Cancel
Save