mirror of
https://github.com/laravel/valet.git
synced 2026-02-07 01:00:09 +01:00
Remove sudoers entries
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user