Browse Source

Prune only when needed (#573)

* Prune only when needed

* Prune only when needed
pull/575/head
Mart124 6 years ago committed by Kyle Spearrin
parent
commit
2f3f852d21
  1. 2
      scripts/run.ps1
  2. 2
      scripts/run.sh

2
scripts/run.ps1

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

2
scripts/run.sh

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

Loading…
Cancel
Save