diff --git a/app/Containers/Dashboard/Actions/Posts/DeploySiteAction.php b/app/Containers/Dashboard/Actions/Posts/DeploySiteAction.php index 23e96d8..e9e23ba 100644 --- a/app/Containers/Dashboard/Actions/Posts/DeploySiteAction.php +++ b/app/Containers/Dashboard/Actions/Posts/DeploySiteAction.php @@ -37,9 +37,9 @@ class DeploySiteAction unlink($this->logFile); } - // Запускаем deploy.sh в фоне + // Запускаем deploy.sh в фоне через sudo (нужен настроенный NOPASSWD для www-data) $command = sprintf( - 'nohup bash %s > %s 2>&1 &', + 'sudo bash %s > %s 2>&1 &', escapeshellarg($this->deployScript), escapeshellarg($this->logFile) );