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

WIP: update configuration files if criteria met.

After validating the config files we can now safely trigger the update
if necessary.

Refers to #18, #28
parent fe2021d8
No related branches found
No related tags found
No related merge requests found
......@@ -600,6 +600,23 @@ if (-Not ($ConfigValid)) {
Exit
}
# reaching this point means
# (1) something needs to be updated (config, service or both)
# AND
# (2) the configuration validates with the corresponding service version
$UpdSummary = ""
if ($ConfigShouldBeUpdated) {
$ConfigUpdated = Update-Configuration
if (-Not $ConfigUpdated) {
Log-Error "Updating the configuration failed, $($Me) terminating!"
Exit
}
$UpdSummary += "The configuration files were updated.`n"
}
Exit
$ServiceUpdated = Update-ServiceBinaries
......
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