From 2f3f852d21ebc20efc97aacafb9da6ddd89fa676 Mon Sep 17 00:00:00 2001 From: Mart124 <37041094+Mart124@users.noreply.github.com> Date: Wed, 2 Oct 2019 16:27:22 +0200 Subject: [PATCH] Prune only when needed (#573) * Prune only when needed * Prune only when needed --- scripts/run.ps1 | 2 +- scripts/run.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/run.ps1 b/scripts/run.ps1 index 18593ae7fe..fe6a7b0ca4 100644 --- a/scripts/run.ps1 +++ b/scripts/run.ps1 @@ -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) { 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 diff --git a/scripts/run.sh b/scripts/run.sh index 87d84f768f..e092c6f56c 100644 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -170,7 +170,6 @@ function restart() { dockerComposePull updateLetsEncrypt dockerComposeUp - dockerPrune printEnvironment } @@ -200,6 +199,7 @@ then dockerComposeDown update withpull restart + dockerPrune echo "Pausing 60 seconds for database to come online. Please wait..." sleep 60 updateDatabase