This commit is contained in:
Madzone
2026-08-10 22:07:47 +02:00
parent 9b76c4c61b
commit 44b1ef0142
2 changed files with 8 additions and 53 deletions
+8 -2
View File
@@ -136,6 +136,13 @@ function Initialize-Installer {
{
Import-InstallerModules
Write-Host "Initialisiere Bootstrap..." -ForegroundColor Cyan
Initialize-Bootstrap `
-RootPath $Script:InstallerRoot
Write-Host "3 - Module erfolgreich geladen." -ForegroundColor Green
}
catch
@@ -201,8 +208,7 @@ function Get-InstallerConfiguration {
Write-Host "Lade Veeam Konfiguration..." -ForegroundColor Yellow
Import-VeeamConfiguration `
-Path $Script:ConfigPath
Import-VeeamConfiguration
$Config = Get-Configuration
@@ -1109,58 +1109,7 @@ function Test-ConfigurationIntegrity {
return $true
}
############################################################
# Get-VeeamConfig
############################################################
function Get-VeeamConfig {
<#
.SYNOPSIS
Lädt zentrale Veeam Konfiguration aus JSON.
#>
param(
[string]$Path = (Join-Path ( Split-Path $PSScriptRoot -Parent )"Config\VeeamConfig.json")
)
if(!(Test-Path $Path))
{
throw `
"Konfigurationsdatei nicht gefunden: $Path"
}
$Content =
Get-Content `
-Path $Path `
-Raw
$Configuration =
$Content |
ConvertFrom-Json
return $Configuration
}