summaryrefslogtreecommitdiffstats
path: root/src/main.lib/Services/TaskSchedulerService.cs
diff options
context:
space:
mode:
authorWouter Tinus <win.acme.simple@gmail.com>2020-07-10 13:22:30 +0200
committerGitHub <noreply@github.com>2020-07-10 13:22:30 +0200
commit594d90be29ec6090668966ad2fe2c9c9d46cace7 (patch)
treeb34d975bd0ae3aff1e46843e41a6bc7fe892fdc7 /src/main.lib/Services/TaskSchedulerService.cs
parente791885b06499c2cdd689bd7a7ed77fa8834a0cf (diff)
parentb2cea77b69fb05710f5f20f388878e92e213499d (diff)
downloadletsencrypt-win-simple-594d90be29ec6090668966ad2fe2c9c9d46cace7.zip
letsencrypt-win-simple-594d90be29ec6090668966ad2fe2c9c9d46cace7.tar.gz
letsencrypt-win-simple-594d90be29ec6090668966ad2fe2c9c9d46cace7.tar.bz2
Merge pull request #1609 from win-acme/2.1.9v2.1.9
2.1.9
Diffstat (limited to 'src/main.lib/Services/TaskSchedulerService.cs')
-rw-r--r--src/main.lib/Services/TaskSchedulerService.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.lib/Services/TaskSchedulerService.cs b/src/main.lib/Services/TaskSchedulerService.cs
index 37f3c0f..28ccf81 100644
--- a/src/main.lib/Services/TaskSchedulerService.cs
+++ b/src/main.lib/Services/TaskSchedulerService.cs
@@ -65,11 +65,11 @@ namespace PKISharp.WACS.Services
{
var healthy = true;
if (!task.Definition.Actions.OfType<ExecAction>().Any(action =>
- action.Path == _settings.ExePath &&
- action.WorkingDirectory == WorkingDirectory))
+ string.Equals(action.Path, _settings.ExePath, StringComparison.OrdinalIgnoreCase) &&
+ string.Equals(action.WorkingDirectory, WorkingDirectory, StringComparison.OrdinalIgnoreCase)))
{
healthy = false;
- _log.Warning("Scheduled task points to different location");
+ _log.Warning("Scheduled task points to different location for .exe and/or working directory");
}
if (!task.Enabled)
{