change flamenco location
This commit is contained in:
@@ -109,7 +109,7 @@ net use
|
||||
|
||||
# Start worker
|
||||
Write-Host "Starting Flamenco worker..." -ForegroundColor Cyan
|
||||
Set-Location 'F:\software\Flamenco 3.7'
|
||||
Set-Location 'F:\software\Flamenco'
|
||||
if (Test-Path 'flamenco-worker.exe') {
|
||||
Write-Host "Running flamenco-worker.exe..." -ForegroundColor Green
|
||||
# Run the worker and capture its exit code
|
||||
@@ -118,7 +118,7 @@ if (Test-Path 'flamenco-worker.exe') {
|
||||
Write-Host "Flamenco worker process has terminated with exit code: $exitCode" -ForegroundColor Yellow
|
||||
exit $exitCode # Exit with the worker's exit code to trigger restart if needed
|
||||
} else {
|
||||
Write-Host "Error: flamenco-worker.exe not found in F:\software\Flamenco 3.7" -ForegroundColor Red
|
||||
Write-Host "Error: flamenco-worker.exe not found in F:\software\Flamenco" -ForegroundColor Red
|
||||
exit 1 # Exit with error code to trigger restart
|
||||
}
|
||||
'@
|
||||
@@ -167,13 +167,13 @@ net use
|
||||
|
||||
# Start worker via CMD - hardcoded paths
|
||||
Write-Host "Running command file..." -ForegroundColor Cyan
|
||||
$defaultCmdPath = "F:\software\Flamenco 3.7\run-flamenco-worker.cmd"
|
||||
$defaultCmdPath = "F:\software\Flamenco\run-flamenco-worker.cmd"
|
||||
|
||||
if (Test-Path $defaultCmdPath) {
|
||||
Set-Location "F:\software\Flamenco 3.7"
|
||||
Set-Location "F:\software\Flamenco"
|
||||
Write-Host "Starting worker..." -ForegroundColor Green
|
||||
# Use hardcoded path to avoid variable expansion issues
|
||||
cmd.exe /c "F:\software\Flamenco 3.7\run-flamenco-worker.cmd"
|
||||
cmd.exe /c "F:\software\Flamenco\run-flamenco-worker.cmd"
|
||||
Write-Host "Worker process has terminated." -ForegroundColor Yellow
|
||||
} else {
|
||||
Write-Host "Command file not found at default location." -ForegroundColor Red
|
||||
@@ -236,7 +236,7 @@ net use
|
||||
|
||||
# Simple direct command execution with automatic "2" input
|
||||
Write-Host "Running Flamenco worker..." -ForegroundColor Cyan
|
||||
Set-Location -Path "F:\software\Flamenco 3.7"
|
||||
Set-Location -Path "F:\software\Flamenco"
|
||||
if (Test-Path -Path "run-flamenco-worker.cmd") {
|
||||
# Create a temporary file to store the "2" input
|
||||
$tempInputFile = [System.IO.Path]::GetTempFileName()
|
||||
|
||||
Reference in New Issue
Block a user