mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-20 09:30:36 +00:00
Catch lack of exec function for git update (#8228)
This commit is contained in:
committed by
GitHub
parent
d3cb23118c
commit
a7579e0cf5
@@ -20,6 +20,11 @@ class FreshRSS_update_Controller extends FreshRSS_ActionController {
|
||||
'Please git pull manually!');
|
||||
}
|
||||
|
||||
if (!function_exists('exec')) {
|
||||
throw new Minz_Exception('Error during git checkout: exec() function is disabled! ' .
|
||||
'Please git pull manually!');
|
||||
}
|
||||
|
||||
exec('git --version', $output, $return);
|
||||
if ($return != 0) {
|
||||
throw new Minz_Exception("Error {$return} git not found: Please update manually!");
|
||||
|
||||
Reference in New Issue
Block a user