Skip to content

Commit

Permalink
Clean up nginx files on uninstall
Browse files Browse the repository at this point in the history
  • Loading branch information
mischabraam committed Oct 16, 2023
1 parent 26bc12d commit 877ee2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/ValetPlus/Elasticsearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ public function install($version = self::ES_DEFAULT_VERSION, $tld = 'test')
*/
public function uninstall()
{
// Remove nginx domain listen file.
$this->files->unlink(static::NGINX_CONFIGURATION_PATH);

foreach ($this->getSupportedVersions() as $version) {
$this->stop($version);
$this->brew->uninstallFormula($version);
Expand Down
2 changes: 2 additions & 0 deletions cli/ValetPlus/Mailhog.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ public function uninstall(): void
$this->removeEnabled();
$this->brew->uninstallFormula(static::SERVICE_NAME);
$this->files->unlink(BREW_PREFIX . '/var/log/mailhog.log');
// Remove nginx domain listen file.
$this->files->unlink(static::NGINX_CONFIGURATION_PATH);
}

/**
Expand Down

0 comments on commit 877ee2f

Please sign in to comment.