mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-12 23:23:49 +08:00
Add curl check file to InstallPreChecks
This commit is contained in:
parent
4c7a6754ef
commit
f0e2129bdf
2 changed files with 24 additions and 23 deletions
|
@ -225,26 +225,14 @@ class InstallHandler extends LegacyHandler
|
|||
$feedback = new Feedback();
|
||||
$feedback->setSuccess(true);
|
||||
|
||||
$checkFile = __DIR__ . '/../../../../.curl_check_main_page';
|
||||
|
||||
require_once __DIR__ . "/../../../../core/backend/Install/Service/InstallPreChecks.php";
|
||||
$installChecks = new InstallPreChecks($log);
|
||||
|
||||
try {
|
||||
file_put_contents($checkFile, 'running');
|
||||
} catch (Exception $e) {
|
||||
$feedback->setSuccess(false);
|
||||
$feedback->setErrors([$e->getMessage()]);
|
||||
return $feedback;
|
||||
}
|
||||
$results[] = $installChecks->checkMainPage($url);
|
||||
$results[] = $installChecks->checkGraphQlAPI($url);
|
||||
$modStrings = $installChecks->getLanguageStrings();
|
||||
|
||||
if (file_exists($checkFile)) {
|
||||
unlink($checkFile);
|
||||
}
|
||||
|
||||
$warnings = [];
|
||||
$errorsFound = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue