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

Rename NewServiceBinaries-Available to ServiceUpdate-Requested.

Refers to #18, #28
parent 3be60296
No related branches found
No related tags found
No related merge requests found
......@@ -396,7 +396,9 @@ function Update-ServiceBinaries {
}
function NewServiceBinaries-Available {
function ServiceUpdate-Requested {
# Check for a host-specific marker file indicating whether the service
# binaries on this host should be updated.
$MarkerFile = "$($UpdPathMarkerFiles)\$($env:COMPUTERNAME)"
if (Test-Path "$MarkerFile" -Type Leaf) {
Log-Debug "Found marker [$($MarkerFile)], not updating service."
......@@ -567,7 +569,7 @@ Exit-IfDirMissing $UploadPathLogs "log file target"
Upload-LogFiles
$ConfigShouldBeUpdated = NewConfig-Available $ConfigPath
$ServiceShouldBeUpdated = NewServiceBinaries-Available
$ServiceShouldBeUpdated = ServiceUpdate-Requested
if (-Not ($ConfigShouldBeUpdated -Or $ServiceShouldBeUpdated)) {
Log-Debug "No update action found to be necessary."
Exit
......
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