mirror of
https://github.com/strapi/strapi.git
synced 2025-12-25 06:04:29 +00:00
Apply the correct value by db
This commit is contained in:
parent
4edd70d549
commit
a11b4842fe
@ -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...');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user