Skip to content

Commit cd1c1c9

Browse files
author
Gao Feng
committed
fix scan certificates directory error when first change domain
1 parent 3f2ed29 commit cd1c1c9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cli/Valet/Site.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ function pruneLinks()
9393
*/
9494
function resecureForNewDomain($oldDomain, $domain)
9595
{
96+
if (!$this->files->exists($this->certificatesPath())) {
97+
return;
98+
}
99+
96100
$secured = $this->secured();
97101

98102
foreach ($secured as $url) {

0 commit comments

Comments
 (0)