fix: remove -Wait from CLI apply to prevent hang
This commit is contained in:
parent
f7fd55344d
commit
e020cb0aed
|
|
@ -173,8 +173,8 @@ if (-not $rdExe) {
|
||||||
|
|
||||||
# === 6) Zapusk s parametrami dlya primeneniya ===
|
# === 6) Zapusk s parametrami dlya primeneniya ===
|
||||||
Write-Host " Applying config via CLI..." -ForegroundColor Gray
|
Write-Host " Applying config via CLI..." -ForegroundColor Gray
|
||||||
Start-Process $rdExe -ArgumentList "--config-server=$RD_HOST","--key=$RD_KEY" -Wait -PassThru -NoNewWindow -ErrorAction SilentlyContinue
|
Start-Process $rdExe -ArgumentList "--config-server=$RD_HOST","--key=$RD_KEY" -NoNewWindow -ErrorAction SilentlyContinue
|
||||||
Start-Sleep -Seconds 3
|
Start-Sleep -Seconds 5
|
||||||
|
|
||||||
# Ostanavlivaem chtoby servis mog zapustitsya chisto
|
# Ostanavlivaem chtoby servis mog zapustitsya chisto
|
||||||
Get-Process -Name "RustDesk" -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue
|
Get-Process -Name "RustDesk" -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue