mirror of
https://github.com/bitwarden/server.git
synced 2024-11-29 13:25:17 +01:00
14 lines
267 B
Bash
14 lines
267 B
Bash
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
OUTPUT_DIR=~/bitwarden
|
|
if [ $# -eq 1 ]
|
|
then
|
|
OUTPUT_DIR=$1
|
|
fi
|
|
|
|
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"
|