1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 00:22:50 -05:00

rebuild command added

This commit is contained in:
Kyle Spearrin
2018-08-30 16:25:33 -04:00
parent 69605fab5b
commit 3c52cc9082
4 changed files with 27 additions and 5 deletions

View File

@ -108,8 +108,10 @@ function Update-Database {
echo "Database update complete"
}
function Update {
Pull-Setup
function Update([switch] $withpull) {
if ($withpull) {
Pull-Setup
}
docker run -it --rm --name setup -v ${outputDir}:/bitwarden bitwarden/setup:$coreVersion `
dotnet Setup.dll -update 1 -os win -corev $coreVersion -webv $webVersion
}
@ -152,9 +154,13 @@ elseif ($updatedb) {
}
elseif ($update) {
Docker-Compose-Down
Update
Update -withpull
Restart
echo "Pausing 60 seconds for database to come online. Please wait..."
Start-Sleep -s 60
Update-Database
}
elseif ($rebuild) {
Docker-Compose-Down
Update
}