Version 1.2.a
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
},
|
||||
|
||||
"SQL": {
|
||||
"Server": "SERVER01",
|
||||
"Server": "Auto",
|
||||
"Instance": "VEEAMSQLSERVER",
|
||||
"Database": "VeeamBackup"
|
||||
},
|
||||
|
||||
@@ -213,6 +213,17 @@ function Get-InstallerConfiguration {
|
||||
}
|
||||
|
||||
|
||||
if([string]$Config.SQL.Server -eq "Auto")
|
||||
{
|
||||
if([string]::IsNullOrWhiteSpace($env:COMPUTERNAME))
|
||||
{
|
||||
throw "Der lokale Windows-Hostname konnte nicht ermittelt werden."
|
||||
}
|
||||
|
||||
$Config.SQL.Server = $env:COMPUTERNAME
|
||||
}
|
||||
|
||||
|
||||
$Validation =
|
||||
Test-VeeamConfiguration `
|
||||
-Configuration $Config
|
||||
|
||||
Reference in New Issue
Block a user