mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 08:30:07 +01:00
Add 'trust' command
This commit is contained in:
@@ -197,4 +197,17 @@ 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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user