mirror of
https://github.com/bitwarden/server.git
synced 2025-02-16 01:51:21 +01:00
silently make dirs
This commit is contained in:
parent
a0a5bffec9
commit
437422ca60
@ -3,7 +3,7 @@ param (
|
|||||||
)
|
)
|
||||||
|
|
||||||
if(!(Test-Path -Path $outputDir )){
|
if(!(Test-Path -Path $outputDir )){
|
||||||
New-Item -ItemType directory -Path $outputDir
|
New-Item -ItemType directory -Path $outputDir | Out-Null
|
||||||
}
|
}
|
||||||
|
|
||||||
docker --version
|
docker --version
|
||||||
@ -20,7 +20,7 @@ if($domain -ne "localhost") {
|
|||||||
|
|
||||||
$letsEncryptPath = "${outputDir}/letsencrypt/live/${domain}"
|
$letsEncryptPath = "${outputDir}/letsencrypt/live/${domain}"
|
||||||
if(!(Test-Path -Path $letsEncryptPath )){
|
if(!(Test-Path -Path $letsEncryptPath )){
|
||||||
New-Item -ItemType directory -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 `
|
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
|
certonly --standalone --noninteractive --agree-tos --preferred-challenges http --email $email -d $domain
|
||||||
|
Loading…
Reference in New Issue
Block a user