Setup-SMTPGraphRelay.ps1 aktualisiert
This commit is contained in:
1 parent
09a4721d4e
commit
1998601ba6
1 file changed
+4
-4
@@ -1942,7 +1942,7 @@ function Manage-SmtpAuth {
|
|||||||
|
|
||||||
# Config nach jeder Änderung neu laden, damit Serialisierung/Arrays exakt
|
# Config nach jeder Änderung neu laden, damit Serialisierung/Arrays exakt
|
||||||
# dem installierten Zustand entsprechen.
|
# dem installierten Zustand entsprechen.
|
||||||
$config = Get-RelayConfig -TargetPath$InstallPath
|
$config = Get-RelayConfig -TargetPath $InstallPath
|
||||||
$config = Ensure-SmtpAuthConfig -Config$config
|
$config = Ensure-SmtpAuthConfig -Config$config
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1963,7 +1963,7 @@ function Invoke-FailureModeTests {
|
|||||||
function Uninstall-Relay {
|
function Uninstall-Relay {
|
||||||
Write-Title "SMTPGraphRelay - Deinstallation"
|
Write-Title "SMTPGraphRelay - Deinstallation"
|
||||||
|
|
||||||
$config = Get-RelayConfig -TargetPath$InstallPath
|
$config = Get-RelayConfig -TargetPath $InstallPath
|
||||||
|
|
||||||
Write-Warn "Lokale Deinstallation entfernt Task, Firewallregel und auf Wunsch das lokale Zertifikat."
|
Write-Warn "Lokale Deinstallation entfernt Task, Firewallregel und auf Wunsch das lokale Zertifikat."
|
||||||
if (-not (Confirm-Yes "Lokale SMTPGraphRelay-Installation wirklich entfernen?")) {
|
if (-not (Confirm-Yes "Lokale SMTPGraphRelay-Installation wirklich entfernen?")) {
|
||||||
@@ -2050,7 +2050,7 @@ function Show-Status {
|
|||||||
if (Test-Path -LiteralPath $configPath) {
|
if (Test-Path -LiteralPath $configPath) {
|
||||||
Write-Ok "config.json vorhanden."
|
Write-Ok "config.json vorhanden."
|
||||||
try {
|
try {
|
||||||
$config = Get-RelayConfig -TargetPath$InstallPath
|
$config = Get-RelayConfig -TargetPath $InstallPath
|
||||||
Write-Host " Sender: $($config.Graph.SenderMailbox) (ForceSender: $($config.Graph.ForceSender))"
|
Write-Host " Sender: $($config.Graph.SenderMailbox) (ForceSender: $($config.Graph.ForceSender))"
|
||||||
Write-Host " SMTP: $($config.Smtp.ListenAddress):$($config.Smtp.Port)"
|
Write-Host " SMTP: $($config.Smtp.ListenAddress):$($config.Smtp.Port)"
|
||||||
Write-Host " Client: $($config.Graph.ClientId)"
|
Write-Host " Client: $($config.Graph.ClientId)"
|
||||||
@@ -2085,7 +2085,7 @@ function Show-Menu {
|
|||||||
Write-Title "SMTPGraphRelay - Bootstrap / Repair / Online Update"
|
Write-Title "SMTPGraphRelay - Bootstrap / Repair / Online Update"
|
||||||
Write-Host "Installationspfad: $InstallPath" -ForegroundColor DarkGray
|
Write-Host "Installationspfad: $InstallPath" -ForegroundColor DarkGray
|
||||||
|
|
||||||
$installedVersion = Get-InstalledVersion -TargetPath$InstallPath
|
$installedVersion = Get-InstalledVersion -TargetPath $InstallPath
|
||||||
|
|
||||||
if ($installedVersion -and$installedVersion.Version) {
|
if ($installedVersion -and$installedVersion.Version) {
|
||||||
Write-Host "Installiert: $($installedVersion.Version)" -ForegroundColor DarkGray
|
Write-Host "Installiert: $($installedVersion.Version)" -ForegroundColor DarkGray
|
||||||
|
|||||||
Reference in new issue
Block a user