diff --git a/scripts/update-db.ps1 b/scripts/update-db.ps1 new file mode 100644 index 0000000000..48fb293daf --- /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 0000000000..d3c8eec27a --- /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"