mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 16:50:09 +01:00
Only delete resolver when Herd is not installed
This commit is contained in:
@@ -43,8 +43,13 @@ public function uninstall(): void
|
||||
$this->brew->stopService('dnsmasq');
|
||||
$this->brew->uninstallFormula('dnsmasq');
|
||||
$this->cli->run('rm -rf '.BREW_PREFIX.'/etc/dnsmasq.d/dnsmasq-valet.conf');
|
||||
$tld = $this->configuration->read()['tld'];
|
||||
$this->files->unlink($this->resolverPath.'/'.$tld);
|
||||
|
||||
// As Laravel Herd uses the same DnsMasq resolver, we should only
|
||||
// delete if, if Herd is not installed.
|
||||
if (!$this->files->exists('/Applications/Herd.app')) {
|
||||
$tld = $this->configuration->read()['tld'];
|
||||
$this->files->unlink($this->resolverPath . '/' . $tld);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user