Initial PlayBull release with Trilogy Hub integration.
Includes homelab deploy tooling, image position/zoom manifest persistence, and full trading/casino stack. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
33
deploy/homelab-exec.ps1
Normal file
33
deploy/homelab-exec.ps1
Normal file
@@ -0,0 +1,33 @@
|
||||
#Requires -Version 5.1
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Fuehrt einen Befehl auf dem Homelab aus (ohne interaktives SSH-Passwort).
|
||||
|
||||
.USAGE
|
||||
.\deploy\homelab-exec.ps1 "systemctl status playbull --no-pager"
|
||||
.\deploy\homelab-exec.ps1 -Sudo "bash deploy/install-homelab.sh"
|
||||
#>
|
||||
param(
|
||||
[Parameter(Position = 0, Mandatory = $true)]
|
||||
[string]$Command,
|
||||
|
||||
[switch]$Sudo,
|
||||
[string]$WorkDir = "",
|
||||
[int]$TimeoutSeconds = 120
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
. "$PSScriptRoot/homelab-lib.ps1"
|
||||
|
||||
$config = Get-HomelabConfig
|
||||
$result = Invoke-HomelabRemote -Config $config -Command $Command -Sudo:$Sudo -WorkDir $WorkDir -TimeoutSeconds $TimeoutSeconds
|
||||
|
||||
if ($result.Output) {
|
||||
$result.Output | ForEach-Object { Write-Output $_ }
|
||||
}
|
||||
if ($result.Error) {
|
||||
$result.Error | ForEach-Object { [Console]::Error.WriteLine($_) }
|
||||
}
|
||||
if ($result.ExitStatus -ne 0) {
|
||||
exit $result.ExitStatus
|
||||
}
|
||||
Reference in New Issue
Block a user