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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user