Skip to content

Commit

Permalink
Remove unnecessary double-slashes in Windows script (#6491)
Browse files Browse the repository at this point in the history
* Remove unnecessary double-slashes in Windows script

The install-service.ps1 script is escaping backslashes inside
a string but that is unnecessary in PowerShell, resulting in
double-slashes inside paths for the service configuration.

* Update changelog
  • Loading branch information
adriansr authored and andrewkroh committed Mar 7, 2018
1 parent 7e28cf7 commit c65dab3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ https://github.com/elastic/beats/compare/v6.0.0-beta2...master[Check the HEAD di
- Update Golang 1.9.4 {pull}6326[6326]
- Fix conditions checking on autodiscover Docker labels. {pull}6412[6412]
- Fix for kafka logger. {pull}6430[6430]
- Remove double slashes in Windows service script. {pull}6491[6491]

*Auditbeat*

Expand Down
2 changes: 1 addition & 1 deletion dev-tools/packer/platforms/windows/install-service.ps1.j2
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ $workdir = Split-Path $MyInvocation.MyCommand.Path
# create new service
New-Service -name {{.beat_name}} `
-displayName {{.beat_name}} `
-binaryPathName "`"$workdir\\{{.beat_name}}.exe`" -c `"$workdir\\{{.beat_name}}.yml`" -path.home `"$workdir`" -path.data `"C:\\ProgramData\\{{.beat_name}}`" -path.logs `"C:\\ProgramData\\{{.beat_name}}\logs`""
-binaryPathName "`"$workdir\{{.beat_name}}.exe`" -c `"$workdir\{{.beat_name}}.yml`" -path.home `"$workdir`" -path.data `"C:\ProgramData\{{.beat_name}}`" -path.logs `"C:\ProgramData\{{.beat_name}}\logs`""

0 comments on commit c65dab3

Please sign in to comment.