mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 16:40:05 +01:00
@@ -181,17 +181,4 @@ function restartLinkedPhp()
|
||||
{
|
||||
$this->restartService($this->linkedPhp());
|
||||
}
|
||||
|
||||
/**
|
||||
* Create the "sudoers.d" entry for running Brew.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function createSudoersEntry()
|
||||
{
|
||||
$this->files->ensureDirExists('/etc/sudoers.d');
|
||||
|
||||
$this->files->put('/etc/sudoers.d/brew', 'Cmnd_Alias BREW = /usr/local/bin/brew *
|
||||
%admin ALL=(root) NOPASSWD: BREW'.PHP_EOL);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,19 +32,6 @@ function symlinkToUsersBin()
|
||||
$this->cli->runAsUser('ln -s '.realpath(__DIR__.'/../../valet').' '.$this->valetBin);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create the "sudoers.d" entry for running Valet.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function createSudoersEntry()
|
||||
{
|
||||
$this->files->ensureDirExists('/etc/sudoers.d');
|
||||
|
||||
$this->files->put('/etc/sudoers.d/valet', 'Cmnd_Alias VALET = /usr/local/bin/valet *
|
||||
%admin ALL=(root) NOPASSWD: VALET'.PHP_EOL);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the paths to all of the Valet extensions.
|
||||
*
|
||||
|
||||
@@ -43,8 +43,6 @@
|
||||
DnsMasq::install();
|
||||
Nginx::restart();
|
||||
Valet::symlinkToUsersBin();
|
||||
Brew::createSudoersEntry();
|
||||
Valet::createSudoersEntry();
|
||||
|
||||
output(PHP_EOL.'<info>Valet installed successfully!</info>');
|
||||
})->descriptions('Install the Valet services');
|
||||
|
||||
Reference in New Issue
Block a user