From 515a864ef0a8e25e9b0b9bc9bd8e3c329b5cb2d0 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 4 Sep 2026 01:05:40 +0200 Subject: [PATCH] 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 --- scripts/activate-muninn-raven-av-srt.cmd | 2 +- scripts/deploy-raven-sleipnir.ps1 | 2 +- scripts/deploy-yggdrasil-heimdall.cmd | 2 +- scripts/deploy-yggdrasil-heimdall.ps1 | 10 +++++----- scripts/deploy-yggdrasil-repixelizer.cmd | 2 +- scripts/deploy-yggdrasil-repixelizer.ps1 | 10 +++++----- scripts/deploy-yggdrasil-source-app.ps1 | 2 +- scripts/deploy-yggdrasil-streampixels.cmd | 2 +- scripts/deploy-yggdrasil-streampixels.ps1 | 10 +++++----- scripts/health-idunn-swarm-deployment-coverage.cmd | 2 +- scripts/health-odin.ps1 | 2 +- scripts/health-voidbot.ps1 | 2 +- scripts/restart-muninn.cmd | 2 +- scripts/restart-nightwing-eve-browser-reference.cmd | 2 +- scripts/restart-nightwing-muninn.cmd | 2 +- scripts/restart-odin.cmd | 2 +- scripts/restart-odin.ps1 | 2 +- scripts/restart-raven-capture-mux.cmd | 2 +- scripts/restart-starfire-muninn.cmd | 2 +- scripts/restart-stonks.cmd | 2 +- scripts/restart-stonks.ps1 | 2 +- scripts/restart-vili.ps1 | 4 ++-- scripts/restart-weksa.cmd | 2 +- scripts/start-idunn-local.ps1 | 2 +- scripts/start-odin.ps1 | 4 ++-- scripts/stop-hermodr.ps1 | 2 +- scripts/stop-odin.ps1 | 2 +- 27 files changed, 41 insertions(+), 41 deletions(-) diff --git a/scripts/activate-muninn-raven-av-srt.cmd b/scripts/activate-muninn-raven-av-srt.cmd index badf485..279d605 100644 --- a/scripts/activate-muninn-raven-av-srt.cmd +++ b/scripts/activate-muninn-raven-av-srt.cmd @@ -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 diff --git a/scripts/deploy-raven-sleipnir.ps1 b/scripts/deploy-raven-sleipnir.ps1 index c3ba91f..ff1215e 100644 --- a/scripts/deploy-raven-sleipnir.ps1 +++ b/scripts/deploy-raven-sleipnir.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", diff --git a/scripts/deploy-yggdrasil-heimdall.cmd b/scripts/deploy-yggdrasil-heimdall.cmd index d7f9027..d15d7b0 100644 --- a/scripts/deploy-yggdrasil-heimdall.cmd +++ b/scripts/deploy-yggdrasil-heimdall.cmd @@ -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 diff --git a/scripts/deploy-yggdrasil-heimdall.ps1 b/scripts/deploy-yggdrasil-heimdall.ps1 index fb1815f..f7d46cc 100644 --- a/scripts/deploy-yggdrasil-heimdall.ps1 +++ b/scripts/deploy-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" diff --git a/scripts/deploy-yggdrasil-repixelizer.cmd b/scripts/deploy-yggdrasil-repixelizer.cmd index b1ede46..ec0edcc 100644 --- a/scripts/deploy-yggdrasil-repixelizer.cmd +++ b/scripts/deploy-yggdrasil-repixelizer.cmd @@ -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 diff --git a/scripts/deploy-yggdrasil-repixelizer.ps1 b/scripts/deploy-yggdrasil-repixelizer.ps1 index 74d34d6..c5b0b13 100644 --- a/scripts/deploy-yggdrasil-repixelizer.ps1 +++ b/scripts/deploy-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" diff --git a/scripts/deploy-yggdrasil-source-app.ps1 b/scripts/deploy-yggdrasil-source-app.ps1 index fd90401..15408f2 100644 --- a/scripts/deploy-yggdrasil-source-app.ps1 +++ b/scripts/deploy-yggdrasil-source-app.ps1 @@ -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 diff --git a/scripts/deploy-yggdrasil-streampixels.cmd b/scripts/deploy-yggdrasil-streampixels.cmd index 3ec3cdb..7c05142 100644 --- a/scripts/deploy-yggdrasil-streampixels.cmd +++ b/scripts/deploy-yggdrasil-streampixels.cmd @@ -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 diff --git a/scripts/deploy-yggdrasil-streampixels.ps1 b/scripts/deploy-yggdrasil-streampixels.ps1 index b40a12d..d58e8ad 100644 --- a/scripts/deploy-yggdrasil-streampixels.ps1 +++ b/scripts/deploy-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" diff --git a/scripts/health-idunn-swarm-deployment-coverage.cmd b/scripts/health-idunn-swarm-deployment-coverage.cmd index 9df2737..5d3ea8c 100644 --- a/scripts/health-idunn-swarm-deployment-coverage.cmd +++ b/scripts/health-idunn-swarm-deployment-coverage.cmd @@ -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 diff --git a/scripts/health-odin.ps1 b/scripts/health-odin.ps1 index 02a53e6..1d26b09 100644 --- a/scripts/health-odin.ps1 +++ b/scripts/health-odin.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" ) diff --git a/scripts/health-voidbot.ps1 b/scripts/health-voidbot.ps1 index 6f6b28a..cc3196a 100644 --- a/scripts/health-voidbot.ps1 +++ b/scripts/health-voidbot.ps1 @@ -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 ) diff --git a/scripts/restart-muninn.cmd b/scripts/restart-muninn.cmd index 8e0b018..4785b68 100644 --- a/scripts/restart-muninn.cmd +++ b/scripts/restart-muninn.cmd @@ -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 diff --git a/scripts/restart-nightwing-eve-browser-reference.cmd b/scripts/restart-nightwing-eve-browser-reference.cmd index 33c36d7..fcf2b2b 100644 --- a/scripts/restart-nightwing-eve-browser-reference.cmd +++ b/scripts/restart-nightwing-eve-browser-reference.cmd @@ -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 diff --git a/scripts/restart-nightwing-muninn.cmd b/scripts/restart-nightwing-muninn.cmd index f98ca46..59823d4 100644 --- a/scripts/restart-nightwing-muninn.cmd +++ b/scripts/restart-nightwing-muninn.cmd @@ -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 diff --git a/scripts/restart-odin.cmd b/scripts/restart-odin.cmd index 28a1c3b..3b5534c 100644 --- a/scripts/restart-odin.cmd +++ b/scripts/restart-odin.cmd @@ -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 diff --git a/scripts/restart-odin.ps1 b/scripts/restart-odin.ps1 index a285bab..334977b 100644 --- a/scripts/restart-odin.ps1 +++ b/scripts/restart-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", diff --git a/scripts/restart-raven-capture-mux.cmd b/scripts/restart-raven-capture-mux.cmd index 5bba9ff..50520b1 100644 --- a/scripts/restart-raven-capture-mux.cmd +++ b/scripts/restart-raven-capture-mux.cmd @@ -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 diff --git a/scripts/restart-starfire-muninn.cmd b/scripts/restart-starfire-muninn.cmd index 76f1929..fa78a28 100644 --- a/scripts/restart-starfire-muninn.cmd +++ b/scripts/restart-starfire-muninn.cmd @@ -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 diff --git a/scripts/restart-stonks.cmd b/scripts/restart-stonks.cmd index 2b459d5..fd9ff6c 100644 --- a/scripts/restart-stonks.cmd +++ b/scripts/restart-stonks.cmd @@ -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 diff --git a/scripts/restart-stonks.ps1 b/scripts/restart-stonks.ps1 index c3f5f0e..3366720 100644 --- a/scripts/restart-stonks.ps1 +++ b/scripts/restart-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" diff --git a/scripts/restart-vili.ps1 b/scripts/restart-vili.ps1 index 060e5de..92a8715 100644 --- a/scripts/restart-vili.ps1 +++ b/scripts/restart-vili.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", diff --git a/scripts/restart-weksa.cmd b/scripts/restart-weksa.cmd index 382d4b6..8ddbf57 100644 --- a/scripts/restart-weksa.cmd +++ b/scripts/restart-weksa.cmd @@ -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 diff --git a/scripts/start-idunn-local.ps1 b/scripts/start-idunn-local.ps1 index adf75fd..acb34b9 100644 --- a/scripts/start-idunn-local.ps1 +++ b/scripts/start-idunn-local.ps1 @@ -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" diff --git a/scripts/start-odin.ps1 b/scripts/start-odin.ps1 index a24d235..47e0751 100644 --- a/scripts/start-odin.ps1 +++ b/scripts/start-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", @@ -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, diff --git a/scripts/stop-hermodr.ps1 b/scripts/stop-hermodr.ps1 index 692db2d..849e71e 100644 --- a/scripts/stop-hermodr.ps1 +++ b/scripts/stop-hermodr.ps1 @@ -1,5 +1,5 @@ param( - [string] $StateDir = "E:\Projects\Odin\scratch\Hermodr" + [string] $StateDir = (Join-Path (Split-Path -Parent $PSScriptRoot) "scratch\Hermodr") ) $ErrorActionPreference = "Stop" diff --git a/scripts/stop-odin.ps1 b/scripts/stop-odin.ps1 index cca0a5f..cfbb412 100644 --- a/scripts/stop-odin.ps1 +++ b/scripts/stop-odin.ps1 @@ -1,5 +1,5 @@ param( - [string] $StateDir = "E:\Projects\Odin\scratch\odin" + [string] $StateDir = (Join-Path (Split-Path -Parent $PSScriptRoot) "scratch\odin") ) $ErrorActionPreference = "Stop"