Skip to content

Commit 4171271

Browse files
committed
Fixes leading backslash for service binary on initial setup
1 parent cb63d5c commit 4171271

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/100-General/10-Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
1818
### Bugfixes
1919

2020
* [#718](https://github.com/Icinga/icinga-powershell-framework/issues/718) Fixes Icinga repository JSON validator to report the correct state of the validation status, in case the JSON is not valid
21+
* [#722](https://github.com/Icinga/icinga-powershell-framework/issues/722) Fixes leading `\` for the service binary path and directory, which results in wrong behavior while using the same shell on which the initial installation was made
2122
* [#724](https://github.com/Icinga/icinga-powershell-framework/issues/724) Fixes `icingaforwindows.pfx` creation in case another `certutil` is installed on the system and being available in the `PATH` environment
2223
* [#725](https://github.com/Icinga/icinga-powershell-framework/pull/725) Fixes Icinga for Windows certificate handling by keeping the .pfx file on the system as created, without using the certificate store. Also fixes handling for providing thumbprints for certificates, which are now loaded directly from the certificate store by also providing a new filter mechanic to fetch the proper certificates from the store
2324

lib/core/repository/Get-IcingaForWindowsServiceData.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function Get-IcingaForWindowsServiceData()
1212
if ($null -ne $IcingaForWindowsService -And ([string]::IsNullOrEmpty($IcingaForWindowsService.ServicePath)) -eq $FALSE) {
1313
$ServicePath = $IcingaForWindowsService.ServicePath;
1414
$ServicePath = $ServicePath.SubString(0, $ServicePath.IndexOf('.exe') + 4);
15-
$ServicePath = $ServicePath.Replace('"', '');
15+
$ServicePath = $ServicePath.Replace('\"', '').Replace('"', '');
1616
$ServiceData.Binary = $ServicePath.SubString($ServicePath.LastIndexOf('\') + 1, $ServicePath.Length - $ServicePath.LastIndexOf('\') - 1);
1717
$ServiceData.FullPath = $ServicePath;
1818
$ServiceData.Directory = $ServicePath.Substring(0, $ServicePath.LastIndexOf('\') + 1);

0 commit comments

Comments
 (0)