Files
server/scripts/update-db.sh

14 lines
262 B
Bash
Raw Normal View History

2017-08-19 10:05:32 -04:00
#!/usr/bin/env bash
set -e
2017-08-19 21:45:13 -04:00
OUTPUT_DIR="../."
2017-08-19 17:59:04 -04:00
if [ $# -eq 1 ]
then
OUTPUT_DIR=$1
fi
2017-08-19 10:05:32 -04:00
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"