Use PhpExecutableFinder() closes #457 #458 (#460)

This commit is contained in:
Nabeel S
2019-12-09 15:26:30 -05:00
committed by GitHub
parent 8042c4ffc1
commit 8cb0021b9f
5 changed files with 36 additions and 14 deletions

View File

@@ -19,15 +19,8 @@ class MaintenanceController extends Controller
public function index()
{
// Generate the cron path. Replace php-fpm with just php
$cron_path = [
'* * * * *',
$this->cronSvc->getCronPath(),
'>> /dev/null 2>&1',
];
return view('admin.maintenance.index', [
'cron_path' => implode(' ', $cron_path),
'cron_path' => $this->cronSvc->getCronExecString(),
'cron_problem_exists' => $this->cronSvc->cronProblemExists(),
]);
}