Skip to content

Commit

Permalink
Fixed missing var for cert generation
Browse files Browse the repository at this point in the history
* Fixed missing variable 'icingaBinary' for certificate generation
  • Loading branch information
LordHepipud committed Nov 21, 2017
1 parent 2393aed commit e70361f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Icinga2Agent/Icinga2Agent.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1597,6 +1597,7 @@ object ApiListener "api" {' + $certificateConfig + '
param([string]$hostname, [string]$certDir);

$this.info('Generating Host certificates required by Icinga 2');
[string]$icingaBinary = Join-Path -Path $this.getInstallPath() -ChildPath 'sbin\icinga2.exe';
$result = $this.startProcess($icingaBinary, $FALSE, [string]::Format('pki new-cert --cn {0} --key {1}{0}.key --cert {1}{0}.crt',
$hostname,
$certDir
Expand Down

0 comments on commit e70361f

Please sign in to comment.