mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +01:00
update db scripts
This commit is contained in:
parent
0c71c1a44f
commit
eef67f3043
8
scripts/update-db.ps1
Normal file
8
scripts/update-db.ps1
Normal file
@ -0,0 +1,8 @@
|
||||
param (
|
||||
[string]$outputDir = "c:/bitwarden"
|
||||
)
|
||||
|
||||
docker run -it --rm --name setup --network container:mssql -v ${outputDir}:/bitwarden bitwarden/setup `
|
||||
dotnet Setup.dll -update 1 -db 1
|
||||
|
||||
echo "Database update complete"
|
9
scripts/update-db.sh
Normal file
9
scripts/update-db.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
OUTPUT_DIR=/etc/bitwarden
|
||||
|
||||
docker run -it --rm --name setup --network container:mssql -v $OUTPUT_DIR:/bitwarden bitwarden/setup \
|
||||
dotnet Setup.dll -update 1 -db 1
|
||||
|
||||
echo "Database update complete"
|
Loading…
Reference in New Issue
Block a user