Skip to content

Commit

Permalink
Fix stop of mysql (#640)
Browse files Browse the repository at this point in the history
  • Loading branch information
mischabraam committed Oct 24, 2024
1 parent ced3b4f commit 237e597
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cli/ValetPlus/Mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,9 @@ public function installedVersion($default = false)
*/
public function stop()
{
$version = $this->installedVersion();
$version = $this->installedVersion() ?: self::MYSQL_DEFAULT_VERSION;
info("Stopping {$version}...");

$this->cli->quietly('sudo brew services stop ' . $version);
$this->cli->quietlyAsUser('brew services stop ' . $version);
$this->cli->quietly('brew services stop ' . $version);
}

/**
Expand Down

0 comments on commit 237e597

Please sign in to comment.