Add sudo to systemctl command in deploy.ps1 for passwordless restart

This commit is contained in:
2026-01-18 15:28:45 -07:00
parent 4354208e1e
commit 29c233eada

View File

@@ -139,7 +139,7 @@ Write-Host ""
# Step 7: Restart API service
Write-Host "[7/9] Restarting API service..." -ForegroundColor Yellow
ssh $RMM_HOST "systemctl restart claudetools-api && sleep 3 && echo 'Service restarted'"
ssh $RMM_HOST "sudo systemctl restart claudetools-api && sleep 3 && echo 'Service restarted'"
if ($LASTEXITCODE -ne 0) {
Write-Host "[ERROR] Failed to restart service" -ForegroundColor Red
exit 1