diff --git a/cli/Valet/Brew.php b/cli/Valet/Brew.php index 6f220ad..0e27ccb 100644 --- a/cli/Valet/Brew.php +++ b/cli/Valet/Brew.php @@ -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); - } } diff --git a/cli/Valet/Valet.php b/cli/Valet/Valet.php index ceeeb54..68e82f1 100644 --- a/cli/Valet/Valet.php +++ b/cli/Valet/Valet.php @@ -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. * diff --git a/cli/valet.php b/cli/valet.php index edeb299..7bc937a 100755 --- a/cli/valet.php +++ b/cli/valet.php @@ -43,8 +43,6 @@ DnsMasq::install(); Nginx::restart(); Valet::symlinkToUsersBin(); - Brew::createSudoersEntry(); - Valet::createSudoersEntry(); output(PHP_EOL.'Valet installed successfully!'); })->descriptions('Install the Valet services');