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) + ) + ); } /**