1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 16:40:05 +01:00

Merge pull request #1028 from drbyte/patch-1

Force removal of orphaned valet.sock file
This commit is contained in:
Matt Stauffer
2021-01-21 15:24:51 -05:00
committed by GitHub

View File

@@ -202,6 +202,10 @@ function useVersion($version, $force = false)
$this->stopRunning(); $this->stopRunning();
// remove any orphaned valet.sock files that PHP didn't clean up due to version conflicts
$this->files->unlink(VALET_HOME_PATH.'/valet.sock');
$this->cli->quietly('sudo rm ' . VALET_HOME_PATH.'/valet.sock');
// ensure configuration is correct and start the linked version // ensure configuration is correct and start the linked version
$this->install(); $this->install();