mirror of
https://github.com/laravel/valet.git
synced 2026-02-04 08:10:07 +01:00
@@ -8,7 +8,7 @@ class Valet
|
||||
{
|
||||
var $cli, $files;
|
||||
|
||||
var $valetBin = '/usr/local/bin/valet';
|
||||
var $valetBin = BREW_PREFIX.'/bin/valet';
|
||||
|
||||
/**
|
||||
* Create a new Valet instance.
|
||||
@@ -88,7 +88,7 @@ function createSudoersEntry()
|
||||
{
|
||||
$this->files->ensureDirExists('/etc/sudoers.d');
|
||||
|
||||
$this->files->put('/etc/sudoers.d/valet', 'Cmnd_Alias VALET = /usr/local/bin/valet *
|
||||
$this->files->put('/etc/sudoers.d/valet', 'Cmnd_Alias VALET = '.BREW_PREFIX.'/bin/valet *
|
||||
%admin ALL=(root) NOPASSWD:SETENV: VALET'.PHP_EOL);
|
||||
}
|
||||
|
||||
|
||||
@@ -372,7 +372,7 @@
|
||||
Thus, you may need to delete things from your <info>~/.composer/composer.json</info> file before running <info>composer global update</info> successfully.
|
||||
Then to finish removing any Composer fragments of Valet:
|
||||
Run <info>composer global remove laravel/valet</info>
|
||||
and then <info>rm /usr/local/bin/valet</info> to remove the Valet bin link if it still exists.
|
||||
and then <info>rm ".BREW_PREFIX."/bin/valet</info> to remove the Valet bin link if it still exists.
|
||||
Optional:
|
||||
- <info>brew list --formula</info> will show any other Homebrew services installed, in case you want to make changes to those as well.
|
||||
- <info>brew doctor</info> can indicate if there might be any broken things left behind.
|
||||
|
||||
Reference in New Issue
Block a user