From fde227231a5e47b0ea907d3c3b0a0acbc08dbc57 Mon Sep 17 00:00:00 2001 From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch> Date: Tue, 20 Feb 2018 16:59:08 +0100 Subject: [PATCH] Run Update-ServiceBinaries if necessary. Refers to #28 --- Updater/Update-Service.ps1 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Updater/Update-Service.ps1 b/Updater/Update-Service.ps1 index c2fa3f0..13fc554 100644 --- a/Updater/Update-Service.ps1 +++ b/Updater/Update-Service.ps1 @@ -620,10 +620,16 @@ if ($ConfigShouldBeUpdated) { $UpdSummary += "The configuration files were updated.`n" } +if ($ServiceShouldBeUpdated) { + $ServiceUpdated = Update-ServiceBinaries + if (-Not $ServiceUpdated) { + Log-Error "Updating the service binaries failed, $($Me) terminating!" + Exit + } +} Exit -$ServiceUpdated = Update-ServiceBinaries if ($msg -ne "") { if ($ServiceRunningBefore) { -- GitLab