Apply the correct value by db

This commit is contained in:
Jim LAURIE 2019-01-15 11:26:26 +01:00 committed by GitHub
parent 4edd70d549
commit a11b4842fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -209,7 +209,11 @@ module.exports = (scope, cb) => {
scope.database.settings.username = answers.username;
scope.database.settings.password = answers.password;
scope.database.options.authenticationDatabase = answers.authenticationDatabase;
scope.database.settings.ssl = scope.database.options.ssl = _.toString(answers.ssl) === 'true';
if (scope.client.database === 'mongo') {
scope.database.settings.ssl = _.toString(answers.ssl) === 'true';
} else {
scope.database.options.ssl = _.toString(answers.ssl) === 'true';
}
console.log();
console.log('⏳ Testing database connection...');