Skip to content

Commit

Permalink
Update MySqlSetup.php
Browse files Browse the repository at this point in the history
  • Loading branch information
HDVinnie authored May 8, 2024
1 parent 0920156 commit 853517f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Installer/Database/MySqlSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function handle()
$this->process(['cp -f ' . resource_path(distname() . "/mysql/$mycnf") . ' /etc/mysql/my.cnf']);

if (distname() === 'ubuntu') {
if ((distmainver() === '20.04' || distmainver() === '22.04') && !is_dir('/var/lib/mysql')) {
if ((distmainver() === '20.04' || distmainver() === '22.04' || distmainver() === '24.04') && !is_dir('/var/lib/mysql')) {
$this->process([
'mkdir /var/lib/mysql',
'chown mysql:mysql /var/lib/mysql',
Expand Down

0 comments on commit 853517f

Please sign in to comment.