diff --git a/AutoTx-Updater/Update-Service.ps1 b/AutoTx-Updater/Update-Service.ps1 index 5b0c4ffb178d7889cd08a365394712d1ccb9f709..d08e3b73e2018ddbaa99b93336bce9717fb33cea 100644 --- a/AutoTx-Updater/Update-Service.ps1 +++ b/AutoTx-Updater/Update-Service.ps1 @@ -316,6 +316,18 @@ Exit-IfDirMissing $UpdateMarkerPath "update marker" Exit-IfDirMissing $UpdateBinariesPath "service binaries update" $ConfigUpdated = Update-Configuration -# Update-ServiceBinaries +$ServiceUpdated = Update-ServiceBinaries -Start-MyService +$msg = "" +if ($ConfigUpdated) { + $msg += "The configuration files were updated.`n" +} +if ($ServiceUpdated) { + $msg += "The service binaries were updated.`n" +} + +if ($msg -ne "") { + Start-MyService + Send-MailReport -Subject "Config and / or service has been updated!" ` + -Body $msg +}