Browse Source

update db scripts

pull/95/head
Kyle Spearrin 8 years ago
parent
commit
eef67f3043
  1. 8
      scripts/update-db.ps1
  2. 9
      scripts/update-db.sh

8
scripts/update-db.ps1

@ -0,0 +1,8 @@ @@ -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

@ -0,0 +1,9 @@ @@ -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…
Cancel
Save