Add sudo to systemctl command in deploy.ps1 for passwordless restart
This commit is contained in:
@@ -139,7 +139,7 @@ Write-Host ""
|
|||||||
|
|
||||||
# Step 7: Restart API service
|
# Step 7: Restart API service
|
||||||
Write-Host "[7/9] Restarting API service..." -ForegroundColor Yellow
|
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) {
|
if ($LASTEXITCODE -ne 0) {
|
||||||
Write-Host "[ERROR] Failed to restart service" -ForegroundColor Red
|
Write-Host "[ERROR] Failed to restart service" -ForegroundColor Red
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user