mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Add delay between service stop and framework upgrade
This commit is contained in:
parent
ad1756b387
commit
32d3f7d77f
1 changed files with 1 additions and 0 deletions
|
|
@ -61,6 +61,7 @@ function Install-IcingaFrameworkUpdate()
|
||||||
|
|
||||||
if ($ServiceStatus -eq 'Running') {
|
if ($ServiceStatus -eq 'Running') {
|
||||||
Stop-IcingaService 'icingapowershell';
|
Stop-IcingaService 'icingapowershell';
|
||||||
|
Start-Sleep -Seconds 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$NewDirectory = (Join-Path -Path $ModuleDirectory -ChildPath 'icinga-powershell-framework');
|
$NewDirectory = (Join-Path -Path $ModuleDirectory -ChildPath 'icinga-powershell-framework');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue