Skip to content

Commit

Permalink
Merge pull request #650 from demeritcowboy/dbssl
Browse files Browse the repository at this point in the history
Fix unreplaced template vars in civicrm.settings.php when using drush installer
  • Loading branch information
seamuslee001 authored Apr 26, 2023
2 parents ab48458 + aac107f commit 9ba8e6d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drush/civicrm.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,9 @@ function _civicrm_generate_settings_file($dbuser, $dbpass, $dbhost, $dbname, $mo
'CMSdbPass' => $db_spec['password'],
'CMSdbHost' => $db_spec['host'],
'CMSdbName' => $db_spec['database'],
// These two are only filled in when using the newer civicrm-setup.
'dbSSL' => '',
'CMSdbSSL' => '',
'siteKey' => preg_replace(';[^a-zA-Z0-9];', '', base64_encode(random_bytes(37))),
'credKeys' => 'aes-cbc:hkdf-sha256:' . preg_replace(';[^a-zA-Z0-9];', '', base64_encode(random_bytes(37))),
'signKeys' => 'jwt-hs256:hkdf-sha256:' . preg_replace(';[^a-zA-Z0-9];', '', base64_encode(random_bytes(37))),
Expand Down

0 comments on commit 9ba8e6d

Please sign in to comment.