Added support to automaticly load all modules on init

This commit is contained in:
Lord Hepipud 2019-07-23 09:16:54 +02:00
parent 8f3183941f
commit fb6267b051

View file

@ -334,9 +334,8 @@ function Get-Icinga-Object()
return $Icinga2; return $Icinga2;
} }
# Automaticly load the Help library including Plugins # Automaticly load all library modules
Import-IcingaLib help\help; Import-IcingaLib '\';
Import-IcingaLib plugins;
# Initialise base configuration for our module # Initialise base configuration for our module
$Icinga2 = & (Join-Path -Path $PSScriptRoot -ChildPath '\core\init.ps1') ` $Icinga2 = & (Join-Path -Path $PSScriptRoot -ChildPath '\core\init.ps1') `