ok
This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user