1
0
mirror of https://github.com/bitwarden/server synced 2025-12-27 21:53:24 +00:00

self host script updates

This commit is contained in:
Kyle Spearrin
2017-11-08 22:24:23 -05:00
parent 78b28061b2
commit 8944c49484
11 changed files with 76 additions and 229 deletions

View File

@@ -1,9 +1,9 @@
param (
[string]$outputDir = "../."
[string]$outputDir = "../.",
[string]$coreVersion = "latest",
[string]$webVersion = "latest"
)
[string]$tag = "1.13.1"
if(!(Test-Path -Path $outputDir )){
New-Item -ItemType directory -Path $outputDir | Out-Null
}
@@ -32,8 +32,8 @@ if($domain -ne "localhost") {
}
}
docker pull bitwarden/setup:$tag
docker run -it --rm --name setup -v ${outputDir}:/bitwarden bitwarden/setup:$tag `
dotnet Setup.dll -install 1 -domain ${domain} -letsencrypt ${letsEncrypt}
docker pull bitwarden/setup:$coreVersion
docker run -it --rm --name setup -v ${outputDir}:/bitwarden bitwarden/setup:$coreVersion `
dotnet Setup.dll -install 1 -domain ${domain} -letsencrypt ${letsEncrypt} -os win -corev $coreVersion -webv $webVersion
echo "Setup complete"