PortValhalla/scripts/Windows/Config/aliae/Install.ps1

9 lines
426 B
PowerShell

#!/bin/pwsh
. "$PSScriptRoot/../../Scripts/BashScript.ps1";
$configFile="$env:ProgramData/aliae/aliae.yml";
Start-BashScript "bash `"$PSScriptRoot/../../../Common/Config/aliae/install.sh`"";
$null = New-Item -Force $configFile;
Copy-Item -Force "$PSScriptRoot/../../../Common/Config/aliae/aliae.yml" $configFile;
[Environment]::SetEnvironmentVariable("ALIAE_CONFIG", $configFile, [System.EnvironmentVariableTarget]::Machine)