Skip to content
Snippets Groups Projects
Commit e74ffcd1 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Check final status and send mail report if applicable.

Refers to #13
parent e25b3918
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment