Fixes for exec and open_basedir checks

This commit is contained in:
David Bomba 2020-12-13 08:06:47 +11:00
parent 1913318124
commit 0f861554f0

View File

@ -78,9 +78,27 @@ class SystemHealth
'node_status' => self::checkNode(),
'cache_enabled' => self::checkConfigCache(),
'phantom_enabled' => (bool) config('ninja.phantomjs_pdf_generation'),
'exec' => (bool) self::checkExecWorks(),
'open_basedir' => (bool) self::checkOpenBaseDir(),
];
}
public static function checkOpenBaseDir()
{
if(strlen(ini_get('open_basedir') == 0))
return true;
return false;
}
public static function checkExecWorks()
{
if(function_exists('exec'))
return true;
return false;
}
public static function checkConfigCache()
{
if (env('APP_URL')) {