From cd1c1c9fd4b23c5b2c284fde004aa6688599f5a1 Mon Sep 17 00:00:00 2001 From: Gao Feng Date: Fri, 10 Jun 2016 17:59:58 +0800 Subject: [PATCH] fix scan certificates directory error when first change domain --- cli/Valet/Site.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli/Valet/Site.php b/cli/Valet/Site.php index 002fc7a..125d53e 100644 --- a/cli/Valet/Site.php +++ b/cli/Valet/Site.php @@ -93,6 +93,10 @@ function pruneLinks() */ function resecureForNewDomain($oldDomain, $domain) { + if (!$this->files->exists($this->certificatesPath())) { + return; + } + $secured = $this->secured(); foreach ($secured as $url) {