Skip to content

Commit

Permalink
Ensure IIS entrypoint is compatible with 10.0.0 and 10.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nickwesselman committed May 4, 2021
1 parent 4f1d547 commit 6e731e4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion image/src/entrypoints/iis/Development.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,10 @@ else
# Print ready message
Write-Host "$(Get-Date -Format $timeFormat): Development ENTRYPOINT: ready!"

& "C:\LogMonitor\LogMonitor.exe" "powershell" "C:\Run-W3SVCService.ps1"
if (Test-Path "C:\Run-W3SVCService.ps1") {
# 10.0.1 -- New script resolves issues with ServiceMonitor and LTSC2019
& "C:\LogMonitor\LogMonitor.exe" "powershell" "C:\Run-W3SVCService.ps1"
} else {
# 10.0.0
& "C:\LogMonitor\LogMonitor.exe" "C:\ServiceMonitor.exe" "w3svc"
}

0 comments on commit 6e731e4

Please sign in to comment.