Added some functionality for PS5.1 and below, as it doesn't seem to properly import the other functions
This commit is contained in:
parent
252125184e
commit
3511d98e62
@ -1,2 +1,6 @@
|
|||||||
Import-Module "$PSScriptRoot/Functions/Public/Initialize-GraylogServiceVault.ps1"
|
Import-Module "$PSScriptRoot/Functions/Public/Initialize-GraylogServiceVault.ps1"
|
||||||
$null = Initialize-GraylogServiceVault
|
$null = Initialize-GraylogServiceVault
|
||||||
|
|
||||||
|
if ($PSVersionTable.PSVersion.Major -lt 7) {
|
||||||
|
Get-ChildItem "$PSScriptRoot/Functions" -Filter "*.ps1" -Recurse | ForEach-Object { Import-Module $_.FullName }
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user