mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
Get container name from docker-compose.override.yml (#571)
* Update run.sh * Much more generic version * Typo * Windows version
This commit is contained in:
parent
904c29809b
commit
003a0802a7
@ -115,7 +115,9 @@ function Update-Lets-Encrypt {
|
|||||||
|
|
||||||
function Update-Database {
|
function Update-Database {
|
||||||
Pull-Setup
|
Pull-Setup
|
||||||
docker run -it --rm --name setup --network container:bitwarden-mssql `
|
Docker-Compose-Files
|
||||||
|
$mssqlId = docker-compose ps -q mssql
|
||||||
|
docker run -it --rm --name setup --network container:$mssqlId `
|
||||||
-v ${outputDir}:/bitwarden bitwarden/setup:$coreVersion `
|
-v ${outputDir}:/bitwarden bitwarden/setup:$coreVersion `
|
||||||
dotnet Setup.dll -update 1 -db 1 -os win -corev $coreVersion -webv $webVersion -q $setupQuiet
|
dotnet Setup.dll -update 1 -db 1 -os win -corev $coreVersion -webv $webVersion -q $setupQuiet
|
||||||
Write-Line "Database update complete"
|
Write-Line "Database update complete"
|
||||||
|
@ -140,7 +140,9 @@ function updateLetsEncrypt() {
|
|||||||
|
|
||||||
function updateDatabase() {
|
function updateDatabase() {
|
||||||
pullSetup
|
pullSetup
|
||||||
docker run -i --rm --name setup --network container:bitwarden-mssql \
|
dockerComposeFiles
|
||||||
|
MSSQL_ID=$(docker-compose ps -q mssql)
|
||||||
|
docker run -i --rm --name setup --network container:$MSSQL_ID \
|
||||||
-v $OUTPUT_DIR:/bitwarden --env-file $ENV_DIR/uid.env bitwarden/setup:$COREVERSION \
|
-v $OUTPUT_DIR:/bitwarden --env-file $ENV_DIR/uid.env bitwarden/setup:$COREVERSION \
|
||||||
dotnet Setup.dll -update 1 -db 1 -os $OS -corev $COREVERSION -webv $WEBVERSION
|
dotnet Setup.dll -update 1 -db 1 -os $OS -corev $COREVERSION -webv $WEBVERSION
|
||||||
echo "Database update complete"
|
echo "Database update complete"
|
||||||
|
Loading…
Reference in New Issue
Block a user