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:
@@ -202,6 +202,10 @@ function useVersion($version, $force = false)
|
||||
|
||||
$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
|
||||
$this->install();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user