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

Logging / verbosity changes.

parent 0b3b96bd
No related branches found
No related tags found
No related merge requests found
...@@ -70,9 +70,10 @@ function ServiceIsBusy { ...@@ -70,9 +70,10 @@ function ServiceIsBusy {
function Exit-IfDirMissing([string]$DirName, [string]$Desc) { function Exit-IfDirMissing([string]$DirName, [string]$Desc) {
if (Test-Path -PathType Container $DirName) { if (Test-Path -PathType Container $DirName) {
Write-Verbose "Verified $($Desc) path: [$($DirName)]"
Return Return
} }
$msg = "ERROR: can't find / access $($Desc) path: $($DirName)" $msg = "ERROR: can't find / access $($Desc) path: [$($DirName)]"
Send-MailReport -Subject "path or permission error" -Body $msg Send-MailReport -Subject "path or permission error" -Body $msg
Exit Exit
} }
...@@ -265,9 +266,9 @@ function Copy-ServiceFiles { ...@@ -265,9 +266,9 @@ function Copy-ServiceFiles {
Write-Host "ERROR: couldn't find package matching '$($Pattern)'!" Write-Host "ERROR: couldn't find package matching '$($Pattern)'!"
Exit Exit
} }
Write-Verbose "Found update source package: $($PkgDir)"
Stop-MyService "Trying to update service using package [$($PkgDir)]." Stop-MyService "Trying to update service using package [$($PkgDir)]."
Write-Verbose "Update source package: $($PkgDir)"
Copy-Item -Recurse -Force -ErrorAction Stop ` Copy-Item -Recurse -Force -ErrorAction Stop `
-Path "$($UpdateBinariesPath)\$($PkgDir)\$($ServiceName)\*" ` -Path "$($UpdateBinariesPath)\$($PkgDir)\$($ServiceName)\*" `
-Destination "$InstallationPath" -Destination "$InstallationPath"
......
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