diff --git a/PSGraylog.psm1 b/PSGraylog.psm1 index a98c155..f59e644 100644 --- a/PSGraylog.psm1 +++ b/PSGraylog.psm1 @@ -1,2 +1,6 @@ Import-Module "$PSScriptRoot/Functions/Public/Initialize-GraylogServiceVault.ps1" -$null = Initialize-GraylogServiceVault \ No newline at end of file +$null = Initialize-GraylogServiceVault + +if ($PSVersionTable.PSVersion.Major -lt 7) { + Get-ChildItem "$PSScriptRoot/Functions" -Filter "*.ps1" -Recurse | ForEach-Object { Import-Module $_.FullName } +} \ No newline at end of file