From e4c7a9b3e5f89d8819ee25240d9dd2f983e177c9 Mon Sep 17 00:00:00 2001 From: Matt Stauffer Date: Mon, 14 Mar 2022 14:22:37 -0400 Subject: [PATCH] Symlink valet.sock *after* restarting so it's not deleted by restarting PHP-FPM Co-Authored-By: Jacob Baker-Kretzmar <18192441+bakerkretzmar@users.noreply.github.com> --- cli/Valet/PhpFpm.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/Valet/PhpFpm.php b/cli/Valet/PhpFpm.php index 1d7f09c..a1e2097 100644 --- a/cli/Valet/PhpFpm.php +++ b/cli/Valet/PhpFpm.php @@ -59,9 +59,9 @@ public function install() $this->files->unlink(VALET_HOME_PATH.'/valet.sock'); $this->cli->quietly('sudo rm '.VALET_HOME_PATH.'/valet.sock'); - $this->symlinkPrimaryValetSock($phpVersion); - $this->restart(); + + $this->symlinkPrimaryValetSock($phpVersion); } /**