Skip to content

Commit f7b2c7e

Browse files
committed
WIP
1 parent 7a3a2d6 commit f7b2c7e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/core/installer/Start-IcingaForWindowsInstallation.psm1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,6 @@ function Start-IcingaForWindowsInstallation()
243243
Write-IcingaFrameworkCodeCache;
244244
Test-IcingaAgent;
245245

246-
if ((Get-IcingaAgentInstallation).Installed) {
247-
Restart-IcingaService 'icinga2' -Force;
248-
}
249-
250246
switch ($InstallApiChecks) {
251247
'0' {
252248
Disable-IcingaFrameworkApiChecks;
@@ -275,6 +271,10 @@ function Start-IcingaForWindowsInstallation()
275271
};
276272
}
277273

274+
if ((Get-IcingaAgentInstallation).Installed) {
275+
Restart-IcingaService 'icinga2' -Force;
276+
}
277+
278278
if ($InstallService) {
279279
Restart-IcingaWindowsService -Force;
280280
}

0 commit comments

Comments
 (0)