Version 2.0.1
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
- Dry-Run Unterstützung
|
||||
|
||||
.VERSION
|
||||
1.0.2
|
||||
2.0.1
|
||||
#>
|
||||
|
||||
|
||||
@@ -635,9 +635,20 @@ function Start-VeeamEnterpriseInstall {
|
||||
|
||||
$Configuration = Get-InstallerConfiguration
|
||||
|
||||
$VeeamSourcePath = Resolve-VeeamSourcePath `
|
||||
-SourcePath $VeeamSourcePath `
|
||||
-ConfiguredPath ([string]$Configuration.Veeam.SourcePath)
|
||||
$VeeamAlreadyInstalled = (!$Script:IsDryRun -and (Test-VeeamInstalled))
|
||||
|
||||
if($VeeamAlreadyInstalled)
|
||||
{
|
||||
Write-Host "Veeam ist bereits installiert. Setup wird übersprungen." -ForegroundColor Green
|
||||
Write-EnterpriseLog -Level INFO -Message "Vorhandene Veeam-Installation erkannt; Setup wird übersprungen."
|
||||
$VeeamSourcePath = ""
|
||||
}
|
||||
else
|
||||
{
|
||||
$VeeamSourcePath = Resolve-VeeamSourcePath `
|
||||
-SourcePath $VeeamSourcePath `
|
||||
-ConfiguredPath ([string]$Configuration.Veeam.SourcePath)
|
||||
}
|
||||
|
||||
$Configuration.Repository.Path = Resolve-RepositoryPath `
|
||||
-Path ([string]$Configuration.Repository.Path) `
|
||||
@@ -722,20 +733,32 @@ function Start-VeeamEnterpriseInstall {
|
||||
-Message ("SQL-Datenbank vorbereitet: {0}; Konto: {1}; Rolle: {2}" -f $SQLPreparation.Database, $SQLPreparation.ServiceAccount, $SQLPreparation.DatabaseRole)
|
||||
}
|
||||
|
||||
$VeeamAnswerFile = Resolve-VeeamAnswerFile `
|
||||
-AnswerFile $VeeamAnswerFile `
|
||||
-SourcePath $VeeamSourcePath `
|
||||
-LocalConfigPath (Join-Path $Script:InstallerRoot "Config") `
|
||||
-DatabaseEngine $Configuration.SQL.Engine `
|
||||
-SQLServer $Configuration.SQL.Server `
|
||||
-SQLInstance $Configuration.SQL.Instance `
|
||||
-DatabaseName $Configuration.SQL.Database
|
||||
|
||||
$Installation =
|
||||
Install-VeeamProduct `
|
||||
-Configuration $Configuration `
|
||||
if($VeeamAlreadyInstalled)
|
||||
{
|
||||
$Installation = [PSCustomObject]@{
|
||||
Status = "AlreadyInstalled"
|
||||
SetupSkipped = $true
|
||||
InstallationPath = Get-VeeamInstallationPath
|
||||
Version = Get-VeeamVersion
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$VeeamAnswerFile = Resolve-VeeamAnswerFile `
|
||||
-AnswerFile $VeeamAnswerFile `
|
||||
-SourcePath $VeeamSourcePath `
|
||||
-AnswerFile $VeeamAnswerFile
|
||||
-LocalConfigPath (Join-Path $Script:InstallerRoot "Config") `
|
||||
-DatabaseEngine $Configuration.SQL.Engine `
|
||||
-SQLServer $Configuration.SQL.Server `
|
||||
-SQLInstance $Configuration.SQL.Instance `
|
||||
-DatabaseName $Configuration.SQL.Database
|
||||
|
||||
$Installation =
|
||||
Install-VeeamProduct `
|
||||
-Configuration $Configuration `
|
||||
-SourcePath $VeeamSourcePath `
|
||||
-AnswerFile $VeeamAnswerFile
|
||||
}
|
||||
|
||||
|
||||
if($null -eq (Get-Module -ListAvailable -Name "Veeam.Backup.PowerShell"))
|
||||
|
||||
Reference in New Issue
Block a user