From be77dd537038545c8caa4290e36ce97f31288087 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 18 Jun 2026 22:32:05 +0100 Subject: [PATCH] Verify Muninn media profile before Raven deploy --- scripts/deploy-raven-muninn-binary.ps1 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/deploy-raven-muninn-binary.ps1 b/scripts/deploy-raven-muninn-binary.ps1 index 94c1e60..bf7ae26 100644 --- a/scripts/deploy-raven-muninn-binary.ps1 +++ b/scripts/deploy-raven-muninn-binary.ps1 @@ -34,6 +34,14 @@ if ($ConnectTimeoutSeconds -lt 1) { throw "ConnectTimeoutSeconds must be at least 1." } +if (-not $SkipRestart) { + & powershell.exe -NoProfile -ExecutionPolicy Bypass -File (Join-Path $PSScriptRoot "verify-muninn-media-profile.ps1") ` + -RestartScript (Join-Path $PSScriptRoot "restart-muninn.ps1") + if ($LASTEXITCODE -ne 0) { + throw "verify-muninn-media-profile.ps1 failed with exit code $LASTEXITCODE" + } +} + function Set-AsciiFile { param( [Parameter(Mandatory = $true)] [string] $Path,