Rebase Idunn actuator scripts off the projects root
The previous commit fixed the target catalog and the operator alarm, but the actuators the catalog invokes carried the same E: paths. Idunn would have resolved every target and then failed on the first restart or deploy it ran, for exactly the reason the alarm failed. Rebased 41 references across 27 scripts: - .cmd bodies invoke their sibling .ps1 through %~dp0 instead of an absolute drive path, and restart-weksa.cmd reaches its sibling repo the same way. - .ps1 parameter defaults and assignments derive from $PSScriptRoot: one level up for paths inside Odin, two for sibling repos under the projects root. Left deliberately alone: $RemoteViliRoot and $StateRoot in restart-vili.ps1. Both are consumed inside the EncodedCommand block that restart-vili ssh's to raven, so they describe raven's filesystem, not starfire's. Whether raven also moved off E: is an operator question, not something to infer from here. Verified: all 46 scripts under scripts/ parse clean, and the derivation resolves to F:\Projects\Odin and F:\Projects on this host. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
70ad92c8e3
commit
515a864ef0
27 changed files with 41 additions and 41 deletions
|
|
@ -1,2 +1,2 @@
|
|||
@echo off
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File E:\Projects\Odin\scripts\activate-muninn-raven-av-srt.ps1
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File %~dp0activate-muninn-raven-av-srt.ps1
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
param(
|
||||
[string] $LocalSleipnirExe = "E:\Projects\Odin\target\release\sleipnir.exe",
|
||||
[string] $LocalSleipnirExe = (Join-Path (Split-Path -Parent $PSScriptRoot) "target\release\sleipnir.exe"),
|
||||
[string] $RavenHost = "raven",
|
||||
[string] $RemoteSleipnirExe = "C:\Meta\Odin\Sleipnir\sleipnir.exe",
|
||||
[string] $SshUser = "madman's lullaby",
|
||||
|
|
|
|||
|
|
@ -7,4 +7,4 @@ if /I not "%IDUNN_COMMAND_AUTHORITY%"=="idunn-daemon" (
|
|||
echo This deployment wrapper is an Idunn actuator. Configure Idunn; do not deploy manually.
|
||||
exit /b 1
|
||||
)
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File E:\Projects\Odin\scripts\deploy-yggdrasil-heimdall.ps1
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File %~dp0deploy-yggdrasil-heimdall.ps1
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
param(
|
||||
[string] $SshTarget = "yggdrasil",
|
||||
[string] $RepoRoot = "E:\Projects\Heimdall",
|
||||
[string] $CultLibRoot = "E:\Projects\CultLib",
|
||||
[string] $RepoRoot = (Join-Path (Split-Path -Parent (Split-Path -Parent $PSScriptRoot)) "Heimdall"),
|
||||
[string] $CultLibRoot = (Join-Path (Split-Path -Parent (Split-Path -Parent $PSScriptRoot)) "CultLib"),
|
||||
[string] $AppUser = "heimdall",
|
||||
[string] $RemoteAppHome = "/srv/heimdall",
|
||||
[string] $RemoteTarballName = "heimdall-source.tar",
|
||||
[string] $RemoteCultLibTarballName = "heimdall-cultlib.tar",
|
||||
[string] $DeployScript = "E:\Projects\gamecult-ops\scripts\deploy-heimdall.sh",
|
||||
[string] $CheckScript = "E:\Projects\gamecult-ops\scripts\check-heimdall.sh",
|
||||
[string] $DeployScript = (Join-Path (Split-Path -Parent (Split-Path -Parent $PSScriptRoot)) "gamecult-ops\scripts\deploy-heimdall.sh"),
|
||||
[string] $CheckScript = (Join-Path (Split-Path -Parent (Split-Path -Parent $PSScriptRoot)) "gamecult-ops\scripts\check-heimdall.sh"),
|
||||
[string] $UpstreamRemote = "origin",
|
||||
[string] $UpstreamBranch = "main",
|
||||
[string] $CultLibUpstreamRemote = "origin",
|
||||
|
|
@ -42,7 +42,7 @@ if ([string]::IsNullOrWhiteSpace($cultLibCommit)) {
|
|||
throw "Could not determine CultLib git revision."
|
||||
}
|
||||
|
||||
$scratch = Join-Path "E:\Projects\Odin\scratch\idunn-deploy" "yggdrasil-heimdall"
|
||||
$scratch = Join-Path (Join-Path (Split-Path -Parent $PSScriptRoot) "scratch\idunn-deploy") "yggdrasil-heimdall"
|
||||
$sourceTarPath = Join-Path $scratch $RemoteTarballName
|
||||
$cultLibTarPath = Join-Path $scratch $RemoteCultLibTarballName
|
||||
$manifestPath = Join-Path $scratch "deployment-manifest.txt"
|
||||
|
|
|
|||
|
|
@ -7,4 +7,4 @@ if /I not "%IDUNN_COMMAND_AUTHORITY%"=="idunn-daemon" (
|
|||
echo This deployment wrapper is an Idunn actuator. Configure Idunn; do not deploy manually.
|
||||
exit /b 1
|
||||
)
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File E:\Projects\Odin\scripts\deploy-yggdrasil-repixelizer.ps1
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File %~dp0deploy-yggdrasil-repixelizer.ps1
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
param(
|
||||
[string] $SshTarget = "yggdrasil",
|
||||
[string] $RepoRoot = "E:\Projects\repixelizer",
|
||||
[string] $CultLibRoot = "E:\Projects\CultLib",
|
||||
[string] $RepoRoot = (Join-Path (Split-Path -Parent (Split-Path -Parent $PSScriptRoot)) "repixelizer"),
|
||||
[string] $CultLibRoot = (Join-Path (Split-Path -Parent (Split-Path -Parent $PSScriptRoot)) "CultLib"),
|
||||
[string] $AppUser = "repixelizer",
|
||||
[string] $RemoteAppHome = "/srv/repixelizer",
|
||||
[string] $RemoteTarballName = "repixelizer-source.tar",
|
||||
[string] $RemoteCultLibTarballName = "repixelizer-cultlib.tar",
|
||||
[string] $DeployScript = "E:\Projects\gamecult-ops\scripts\deploy-repixelizer-gui.sh",
|
||||
[string] $CheckScript = "E:\Projects\gamecult-ops\scripts\check-repixelizer-gui.sh",
|
||||
[string] $DeployScript = (Join-Path (Split-Path -Parent (Split-Path -Parent $PSScriptRoot)) "gamecult-ops\scripts\deploy-repixelizer-gui.sh"),
|
||||
[string] $CheckScript = (Join-Path (Split-Path -Parent (Split-Path -Parent $PSScriptRoot)) "gamecult-ops\scripts\check-repixelizer-gui.sh"),
|
||||
[string] $UpstreamRemote = "origin",
|
||||
[string] $UpstreamBranch = "main",
|
||||
[string] $CultLibUpstreamRemote = "origin",
|
||||
|
|
@ -43,7 +43,7 @@ if ([string]::IsNullOrWhiteSpace($cultLibCommit)) {
|
|||
throw "Could not determine CultLib git revision."
|
||||
}
|
||||
|
||||
$scratch = Join-Path "E:\Projects\Odin\scratch\idunn-deploy" "yggdrasil-repixelizer"
|
||||
$scratch = Join-Path (Join-Path (Split-Path -Parent $PSScriptRoot) "scratch\idunn-deploy") "yggdrasil-repixelizer"
|
||||
$sourceTarPath = Join-Path $scratch $RemoteTarballName
|
||||
$cultLibTarPath = Join-Path $scratch $RemoteCultLibTarballName
|
||||
$manifestPath = Join-Path $scratch "deployment-manifest.txt"
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ if ([string]::IsNullOrWhiteSpace($commit)) {
|
|||
throw "Could not determine git revision for $RepoRoot $sourceRef"
|
||||
}
|
||||
|
||||
$scratch = Join-Path "E:\Projects\Odin\scratch\idunn-deploy" $AppId
|
||||
$scratch = Join-Path (Join-Path (Split-Path -Parent $PSScriptRoot) "scratch\idunn-deploy") $AppId
|
||||
$tarPath = Join-Path $scratch $RemoteTarballName
|
||||
$manifestPath = Join-Path $scratch "deployment-manifest.txt"
|
||||
New-Item -ItemType Directory -Force -Path $scratch | Out-Null
|
||||
|
|
|
|||
|
|
@ -7,4 +7,4 @@ if /I not "%IDUNN_COMMAND_AUTHORITY%"=="idunn-daemon" (
|
|||
echo This deployment wrapper is an Idunn actuator. Configure Idunn; do not deploy manually.
|
||||
exit /b 1
|
||||
)
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File E:\Projects\Odin\scripts\deploy-yggdrasil-streampixels.ps1
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File %~dp0deploy-yggdrasil-streampixels.ps1
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
param(
|
||||
[string] $SshTarget = "yggdrasil",
|
||||
[string] $RepoRoot = "E:\Projects\StreamPixels",
|
||||
[string] $CultLibRoot = "E:\Projects\CultLib",
|
||||
[string] $RepoRoot = (Join-Path (Split-Path -Parent (Split-Path -Parent $PSScriptRoot)) "StreamPixels"),
|
||||
[string] $CultLibRoot = (Join-Path (Split-Path -Parent (Split-Path -Parent $PSScriptRoot)) "CultLib"),
|
||||
[string] $AppUser = "streampixels",
|
||||
[string] $RemoteAppHome = "/srv/streampixels",
|
||||
[string] $RemoteTarballName = "streampixels-source.tar",
|
||||
[string] $RemoteCultLibTarballName = "streampixels-cultlib.tar",
|
||||
[string] $DeployScript = "E:\Projects\gamecult-ops\scripts\deploy-streampixels-preview.sh",
|
||||
[string] $CheckScript = "E:\Projects\gamecult-ops\scripts\check-streampixels-preview.sh",
|
||||
[string] $DeployScript = (Join-Path (Split-Path -Parent (Split-Path -Parent $PSScriptRoot)) "gamecult-ops\scripts\deploy-streampixels-preview.sh"),
|
||||
[string] $CheckScript = (Join-Path (Split-Path -Parent (Split-Path -Parent $PSScriptRoot)) "gamecult-ops\scripts\check-streampixels-preview.sh"),
|
||||
[string] $UpstreamRemote = "origin",
|
||||
[string] $UpstreamBranch = "main",
|
||||
[string] $CultLibUpstreamRemote = "origin",
|
||||
|
|
@ -42,7 +42,7 @@ if ([string]::IsNullOrWhiteSpace($cultLibCommit)) {
|
|||
throw "Could not determine CultLib git revision."
|
||||
}
|
||||
|
||||
$scratch = Join-Path "E:\Projects\Odin\scratch\idunn-deploy" "yggdrasil-streampixels"
|
||||
$scratch = Join-Path (Join-Path (Split-Path -Parent $PSScriptRoot) "scratch\idunn-deploy") "yggdrasil-streampixels"
|
||||
$sourceTarPath = Join-Path $scratch $RemoteTarballName
|
||||
$cultLibTarPath = Join-Path $scratch $RemoteCultLibTarballName
|
||||
$manifestPath = Join-Path $scratch "deployment-manifest.txt"
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
@echo off
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File E:\Projects\Odin\scripts\health-idunn-swarm-deployment-coverage.ps1
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File %~dp0health-idunn-swarm-deployment-coverage.ps1
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
param(
|
||||
[string] $StateDir = "E:\Projects\Odin\scratch\odin",
|
||||
[string] $StateDir = (Join-Path (Split-Path -Parent $PSScriptRoot) "scratch\odin"),
|
||||
[int] $MaxSilenceSeconds = 120,
|
||||
[string] $CultNetRudpBind = "0.0.0.0:17871"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
param(
|
||||
[string] $VoidBotRoot = "E:\Projects\VoidBot",
|
||||
[string] $VoidBotRoot = (Join-Path (Split-Path -Parent (Split-Path -Parent $PSScriptRoot)) "VoidBot"),
|
||||
[int] $MaxOrchestratorAgeSeconds = 180,
|
||||
[int] $MaxCultMeshStoreAgeSeconds = 180
|
||||
)
|
||||
|
|
|
|||
|
|
@ -7,4 +7,4 @@ if /I not "%IDUNN_COMMAND_AUTHORITY%"=="idunn-daemon" (
|
|||
echo restart-muninn.cmd is an Idunn actuator wrapper. Redeploy by poking Idunn; direct service restart is not an owned path. 1>&2
|
||||
exit /b 1
|
||||
)
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File E:\Projects\Odin\scripts\restart-muninn.ps1
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File %~dp0restart-muninn.ps1
|
||||
|
|
|
|||
|
|
@ -7,4 +7,4 @@ if /I not "%IDUNN_COMMAND_AUTHORITY%"=="idunn-daemon" (
|
|||
echo restart-nightwing-eve-browser-reference.cmd is an Idunn actuator wrapper. Redeploy by poking Idunn; direct service restart is not an owned path. 1>&2
|
||||
exit /b 1
|
||||
)
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File E:\Projects\Odin\scripts\restart-nightwing-eve-browser-reference.ps1
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File %~dp0restart-nightwing-eve-browser-reference.ps1
|
||||
|
|
|
|||
|
|
@ -7,4 +7,4 @@ if /I not "%IDUNN_COMMAND_AUTHORITY%"=="idunn-daemon" (
|
|||
echo restart-nightwing-muninn.cmd is an Idunn actuator wrapper. Redeploy by poking Idunn; direct service restart is not an owned path. 1>&2
|
||||
exit /b 1
|
||||
)
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File E:\Projects\Odin\scripts\restart-nightwing-muninn.ps1 -DiscoverMoveState -ClaimUsbMoves
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File %~dp0restart-nightwing-muninn.ps1 -DiscoverMoveState -ClaimUsbMoves
|
||||
|
|
|
|||
|
|
@ -7,4 +7,4 @@ if /I not "%IDUNN_COMMAND_AUTHORITY%"=="idunn-daemon" (
|
|||
echo restart-odin.cmd is an Idunn actuator wrapper. Redeploy by poking Idunn; direct service restart is not an owned path. 1>&2
|
||||
exit /b 1
|
||||
)
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -ExecutionPolicy Bypass -File E:\Projects\Odin\scripts\restart-odin.ps1
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -ExecutionPolicy Bypass -File %~dp0restart-odin.ps1
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
param(
|
||||
[string] $StateDir = "E:\Projects\Odin\scratch\odin",
|
||||
[string] $StateDir = (Join-Path (Split-Path -Parent $PSScriptRoot) "scratch\odin"),
|
||||
[string] $CultNetRudpBind = "0.0.0.0:17871",
|
||||
[string] $IdunnRudpHealth = $(if ($env:ODIN_IDUNN_RUDP_HEALTH) { $env:ODIN_IDUNN_RUDP_HEALTH } else { $env:IDUNN_RUDP_HEALTH }),
|
||||
[string] $IdunnDaemon = "odin",
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
@echo off
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File E:\Projects\Odin\scripts\restart-muninn.ps1
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File %~dp0restart-muninn.ps1
|
||||
|
|
|
|||
|
|
@ -7,4 +7,4 @@ if /I not "%IDUNN_COMMAND_AUTHORITY%"=="idunn-daemon" (
|
|||
echo restart-starfire-muninn.cmd is an Idunn actuator wrapper. Redeploy by poking Idunn; direct service restart is not an owned path. 1>&2
|
||||
exit /b 1
|
||||
)
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File E:\Projects\Odin\scripts\restart-starfire-muninn.ps1
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File %~dp0restart-starfire-muninn.ps1
|
||||
|
|
|
|||
|
|
@ -7,4 +7,4 @@ if /I not "%IDUNN_COMMAND_AUTHORITY%"=="idunn-daemon" (
|
|||
echo restart-stonks.cmd is an Idunn actuator body. Redeploy by poking Idunn; direct service restart is not an owned path. 1>&2
|
||||
exit /b 1
|
||||
)
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File E:\Projects\Odin\scripts\restart-stonks.ps1
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File %~dp0restart-stonks.ps1
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$stonksRoot = "E:\Projects\Stonks"
|
||||
$stonksRoot = (Join-Path (Split-Path -Parent (Split-Path -Parent $PSScriptRoot)) "Stonks")
|
||||
$stateDir = Join-Path $stonksRoot "scratch\stonks"
|
||||
$pidPath = Join-Path $stateDir "stonks.pid"
|
||||
$startScript = Join-Path $stonksRoot "scripts\start-stonks.ps1"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
param(
|
||||
[string] $RavenHost = "raven",
|
||||
[string] $LocalViliRoot = "E:\Projects\Vili",
|
||||
[string] $LocalCultLibRoot = "E:\Projects\CultLib",
|
||||
[string] $LocalViliRoot = (Join-Path (Split-Path -Parent (Split-Path -Parent $PSScriptRoot)) "Vili"),
|
||||
[string] $LocalCultLibRoot = (Join-Path (Split-Path -Parent (Split-Path -Parent $PSScriptRoot)) "CultLib"),
|
||||
[string] $RemoteViliRoot = "E:\Projects\Vili",
|
||||
[int] $Port = 8824,
|
||||
[string] $HostName = "0.0.0.0",
|
||||
|
|
|
|||
|
|
@ -7,4 +7,4 @@ if /I not "%IDUNN_COMMAND_AUTHORITY%"=="idunn-daemon" (
|
|||
echo restart-weksa.cmd is an Idunn actuator body. Redeploy by poking Idunn; direct service restart is not an owned path. 1>&2
|
||||
exit /b 1
|
||||
)
|
||||
call E:\Projects\weksa\scripts\restart-weksa-daemon.cmd
|
||||
call %~dp0..\..\weksa\scripts\restart-weksa-daemon.cmd
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
param(
|
||||
[int] $StaleAfterSeconds = 120,
|
||||
[string] $StateDir = "E:\Projects\Odin\scratch\idunn"
|
||||
[string] $StateDir = (Join-Path (Split-Path -Parent $PSScriptRoot) "scratch\idunn")
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
param(
|
||||
[string] $StateDir = "E:\Projects\Odin\scratch\odin",
|
||||
[string] $StateDir = (Join-Path (Split-Path -Parent $PSScriptRoot) "scratch\odin"),
|
||||
[string] $CultNetRudpBind = "0.0.0.0:17871",
|
||||
[string] $IdunnRudpHealth = $(if ($env:ODIN_IDUNN_RUDP_HEALTH) { $env:ODIN_IDUNN_RUDP_HEALTH } else { $env:IDUNN_RUDP_HEALTH }),
|
||||
[string] $IdunnDaemon = "odin",
|
||||
|
|
@ -39,7 +39,7 @@ if (Test-Path $pidPath) {
|
|||
Remove-Item -LiteralPath $pidPath -Force
|
||||
}
|
||||
|
||||
$env:NODE_PATH = "E:\Projects\CultLib\packages"
|
||||
$env:NODE_PATH = (Join-Path (Split-Path -Parent (Split-Path -Parent $PSScriptRoot)) "CultLib\packages")
|
||||
$args = @(
|
||||
$scriptPath,
|
||||
"--stateDir", $StateDir,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
param(
|
||||
[string] $StateDir = "E:\Projects\Odin\scratch\Hermodr"
|
||||
[string] $StateDir = (Join-Path (Split-Path -Parent $PSScriptRoot) "scratch\Hermodr")
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
param(
|
||||
[string] $StateDir = "E:\Projects\Odin\scratch\odin"
|
||||
[string] $StateDir = (Join-Path (Split-Path -Parent $PSScriptRoot) "scratch\odin")
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
|
|
|||
Loading…
Reference in a new issue