Skip to content

Commit

Permalink
Handle single digit version for mysql:8
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronFeledy committed May 8, 2024
1 parent ce1ebae commit 1e599de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builders/_drupaly.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ const getConfigDefaults = options => {
const dbConfig = _.get(options, 'database', 'mysql');
const database = _.first(dbConfig.split(':'));
const version = _.last(dbConfig.split(':')).substring(0, 2);
if (database === 'mysql' || database === 'mariadb') {
if (version === '8.') {
if (database === 'mysql') {
if (version === '8.' || version === '8') {
options.defaultFiles.database = 'mysql8.cnf';
} else {
options.defaultFiles.database = 'mysql.cnf';
Expand Down

0 comments on commit 1e599de

Please sign in to comment.