From 237e597d12447aaee8352d60767e735cbcb4b500 Mon Sep 17 00:00:00 2001 From: Mischa Braam Date: Thu, 24 Oct 2024 08:49:55 +0200 Subject: [PATCH] Fix stop of mysql (#640) --- cli/ValetPlus/Mysql.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cli/ValetPlus/Mysql.php b/cli/ValetPlus/Mysql.php index 8c662b52..7e32a737 100644 --- a/cli/ValetPlus/Mysql.php +++ b/cli/ValetPlus/Mysql.php @@ -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); } /**