mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
🐛 Fixed custom certificate usage for MySQL (#10573)
closes #10570 Added a conditional to only run makePathsAbsolute when database:client is sqlite3, which keeps expected behaviour (make the "database:connection:filename" path absolute when running SQLite) while not breaking MySQL behaviour.
This commit is contained in:
parent
7e55715f3d
commit
fba277ce1d
1 changed files with 3 additions and 2 deletions
|
@ -48,8 +48,9 @@ _private.loadNconf = function loadNconf(options) {
|
|||
|
||||
nconf.sanitizeDatabaseProperties();
|
||||
nconf.makePathsAbsolute(nconf.get('paths'), 'paths');
|
||||
nconf.makePathsAbsolute(nconf.get('database:connection'), 'database:connection');
|
||||
|
||||
if (nconf.get('database:client') === 'sqlite3') {
|
||||
nconf.makePathsAbsolute(nconf.get('database:connection'), 'database:connection');
|
||||
}
|
||||
/**
|
||||
* Check if the URL in config has a protocol
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue