1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 08:32:50 -05: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:
Mart124
2019-10-02 16:20:33 +02:00
committed by Kyle Spearrin
parent 904c29809b
commit 003a0802a7
2 changed files with 6 additions and 2 deletions

View File

@ -140,7 +140,9 @@ function updateLetsEncrypt() {
function updateDatabase() {
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 \
dotnet Setup.dll -update 1 -db 1 -os $OS -corev $COREVERSION -webv $WEBVERSION
echo "Database update complete"