1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-06 05:28:15 -05:00

Prune only when needed (#573)

* Prune only when needed

* Prune only when needed
This commit is contained in:
Mart124 2019-10-02 16:27:22 +02:00 committed by Kyle Spearrin
parent 6f91b693d9
commit 2f3f852d21
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,6 @@ function Restart {
Docker-Compose-Pull Docker-Compose-Pull
Update-Lets-Encrypt Update-Lets-Encrypt
Docker-Compose-Up Docker-Compose-Up
Docker-Prune
Print-Environment Print-Environment
} }
@ -177,6 +176,7 @@ elseif ($update) {
Docker-Compose-Down Docker-Compose-Down
Update -withpull Update -withpull
Restart Restart
Docker-Prune
Write-Line "Pausing 60 seconds for database to come online. Please wait..." Write-Line "Pausing 60 seconds for database to come online. Please wait..."
Start-Sleep -s 60 Start-Sleep -s 60
Update-Database Update-Database

View File

@ -170,7 +170,6 @@ function restart() {
dockerComposePull dockerComposePull
updateLetsEncrypt updateLetsEncrypt
dockerComposeUp dockerComposeUp
dockerPrune
printEnvironment printEnvironment
} }
@ -200,6 +199,7 @@ then
dockerComposeDown dockerComposeDown
update withpull update withpull
restart restart
dockerPrune
echo "Pausing 60 seconds for database to come online. Please wait..." echo "Pausing 60 seconds for database to come online. Please wait..."
sleep 60 sleep 60
updateDatabase updateDatabase