From 9ab979f83b24c9d42307cc434d48010db27ca27d Mon Sep 17 00:00:00 2001 From: Alexander Stoll Date: Tue, 10 Dec 2019 13:14:00 +0100 Subject: [PATCH] Fix missing const NodeName #33 --- lib/core/icingaagent/misc/Start-IcingaAgentInstallWizard.psm1 | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/core/icingaagent/misc/Start-IcingaAgentInstallWizard.psm1 b/lib/core/icingaagent/misc/Start-IcingaAgentInstallWizard.psm1 index 68a47b5..9c8e3ad 100644 --- a/lib/core/icingaagent/misc/Start-IcingaAgentInstallWizard.psm1 +++ b/lib/core/icingaagent/misc/Start-IcingaAgentInstallWizard.psm1 @@ -471,6 +471,7 @@ function Start-IcingaAgentInstallWizard() if ($RunInstaller) { if ((Install-IcingaAgent -Version $AgentVersion -Source $PackageSource -AllowUpdates $AllowVersionChanges) -Or $Reconfigure) { Move-IcingaAgentDefaultConfig; + Set-IcingaAgentNodeName -Hostname $Hostname; Set-IcingaAgentServiceUser -User $ServiceUser -Password $ServicePass -SetPermission | Out-Null; Install-IcingaFrameworkService -Path $ServiceBin -User $ServiceUser -Password $ServicePass | Out-Null; Register-IcingaBackgroundDaemon -Command 'Start-IcingaServiceCheckDaemon';