mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 08:30:07 +01:00
Uses the correct service name if nginx-full is installed instead of nginx
This commit is contained in:
@@ -56,6 +56,16 @@ function hasInstalledNginx()
|
||||
|| $this->installed('nginx-full');
|
||||
}
|
||||
|
||||
/**
|
||||
* Return name of the nginx service installed via Homebrewed.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function nginxServiceName()
|
||||
{
|
||||
return $this->installed('nginx-full') ? 'nginx-full' : 'nginx';
|
||||
}
|
||||
|
||||
/**
|
||||
* Ensure that the given formula is installed.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user