From 6e63849b9876353480cde34b8ca792a217b98d68 Mon Sep 17 00:00:00 2001 From: Sam Granger Date: Wed, 19 Feb 2020 11:10:29 +0100 Subject: [PATCH] Fix Elasticsearch NGINX stub --- cli/Valet/Elasticsearch.php | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/cli/Valet/Elasticsearch.php b/cli/Valet/Elasticsearch.php index 0942adce..f5650214 100644 --- a/cli/Valet/Elasticsearch.php +++ b/cli/Valet/Elasticsearch.php @@ -155,16 +155,14 @@ public function uninstall() */ public function updateDomain($domain) { - if ($this->files->exists(self::NGINX_CONFIGURATION_PATH)) { - $this->files->putAsUser( - self::NGINX_CONFIGURATION_PATH, - str_replace( - ['VALET_DOMAIN'], - [$domain], - $this->files->get(self::NGINX_CONFIGURATION_PATH) - ) - ); - } + $this->files->putAsUser( + self::NGINX_CONFIGURATION_PATH, + str_replace( + ['VALET_DOMAIN'], + [$domain], + $this->files->get(self::NGINX_CONFIGURATION_STUB) + ) + ); } /**