Fix missing const NodeName #33

This commit is contained in:
Alexander Stoll 2019-12-10 13:14:00 +01:00
parent 58c6d0fd7d
commit 9ab979f83b

View file

@ -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';