mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-23 08:10:16 -05:00
parent
9ab979f83b
commit
4c839e0b19
1 changed files with 5 additions and 0 deletions
|
|
@ -24,6 +24,11 @@ function Install-IcingaFrameworkPlugins()
|
||||||
|
|
||||||
$PluginDirectory = (Join-Path -Path $Archive.ModuleRoot -ChildPath $RepositoryName);
|
$PluginDirectory = (Join-Path -Path $Archive.ModuleRoot -ChildPath $RepositoryName);
|
||||||
|
|
||||||
|
if ((Test-Path $PluginDirectory) -eq $FALSE) {
|
||||||
|
Write-Host ([string]::Format('Plugin Module Directory "{0}" is not present. Creating Directory', $PluginDirectory));
|
||||||
|
New-Item -Path $PluginDirectory -ItemType Directory | Out-Null;
|
||||||
|
}
|
||||||
|
|
||||||
Write-Host 'Copying files to plugins';
|
Write-Host 'Copying files to plugins';
|
||||||
Copy-ItemSecure -Path (Join-Path -Path $ModuleContent -ChildPath '/*') -Destination $PluginDirectory -Recurse -Force | Out-Null;
|
Copy-ItemSecure -Path (Join-Path -Path $ModuleContent -ChildPath '/*') -Destination $PluginDirectory -Recurse -Force | Out-Null;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue