From eef67f304311b0c35ab3b236e7ddd77625287dd1 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 19 Aug 2017 10:05:32 -0400 Subject: [PATCH] update db scripts --- scripts/update-db.ps1 | 8 ++++++++ scripts/update-db.sh | 9 +++++++++ 2 files changed, 17 insertions(+) create mode 100644 scripts/update-db.ps1 create mode 100644 scripts/update-db.sh diff --git a/scripts/update-db.ps1 b/scripts/update-db.ps1 new file mode 100644 index 000000000..48fb293da --- /dev/null +++ b/scripts/update-db.ps1 @@ -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" diff --git a/scripts/update-db.sh b/scripts/update-db.sh new file mode 100644 index 000000000..d3c8eec27 --- /dev/null +++ b/scripts/update-db.sh @@ -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"