diff --git a/scripts/install.ps1 b/scripts/install.ps1 index bffd78b7fd..465a73f3b5 100644 --- a/scripts/install.ps1 +++ b/scripts/install.ps1 @@ -18,13 +18,13 @@ if($domain -ne "localhost") { if($letsEncrypt -eq "y") { [string]$email = $( Read-Host "(!) Enter your email address (Let's Encrypt will send you certificate expiration reminders)" ) - $letsEncryptPath = "${outputDir}/letsencrypt/live/${domain}" + $letsEncryptPath = "${outputDir}/letsencrypt" if(!(Test-Path -Path $letsEncryptPath )){ New-Item -ItemType directory -Path $letsEncryptPath | Out-Null } docker run -it --rm --name certbot -p 80:80 -v $outputDir/letsencrypt:/etc/letsencrypt/ certbot/certbot ` certonly --standalone --noninteractive --agree-tos --preferred-challenges http --email $email -d $domain ` - --logs-dir $outputDir/letsencrypt/logs --staging + --logs-dir /etc/letsencrypt/logs --staging } } diff --git a/scripts/run.ps1 b/scripts/run.ps1 index 4bd0c176fd..1cb9774290 100644 --- a/scripts/run.ps1 +++ b/scripts/run.ps1 @@ -11,10 +11,10 @@ if($dockerDir -eq "") { docker --version docker-compose --version -$letsEncryptLivePath = "${outputDir}/letsencrypt/live" -if(Test-Path -Path $letsEncryptLivePath) { +$letsEncryptPath = "${outputDir}/letsencrypt" +if(Test-Path -Path $letsEncryptPath) { docker run -it --rm --name certbot -p 443:443 -p 80:80 -v $outputDir/letsencrypt:/etc/letsencrypt/ certbot/certbot ` - renew --logs-dir $outputDir/letsencrypt/logs --staging + renew --logs-dir /etc/letsencrypt/logs --staging } docker-compose -f ${dockerDir}\docker-compose.yml -f ${dockerDir}\docker-compose.macwin.yml down