1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-12 13:19:01 -05:00

path adjustments for lets encrypt

This commit is contained in:
Kyle Spearrin
2017-08-21 11:39:49 -04:00
parent 5fe587ea9f
commit e90dc470b7
2 changed files with 5 additions and 5 deletions

View File

@ -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
}
}