Increase timeout on migration (#2992)

This commit is contained in:
Jeroen Peelaerts
2020-10-28 22:00:56 +01:00
parent 625fb584ed
commit e1ff739621
3 changed files with 3 additions and 6 deletions

View File

@@ -905,7 +905,7 @@ class Config extends Secure_Controller
$result = FALSE;
// Chmod the file
@chmod($config_path, 0777);
@chmod($config_path, 0770);
// Verify file permissions
if(is_writable($config_path))
@@ -920,7 +920,7 @@ class Config extends Secure_Controller
}
// Chmod the file
@chmod($config_path, 0444);
@chmod($config_path, 0440);
return $result;
}

View File

@@ -45,7 +45,7 @@ class Login extends CI_Controller
if (!$this->migration->is_latest())
{
set_time_limit(1200);
set_time_limit(3600);
// trigger any required upgrade before starting the application
$this->migration->latest();
}

View File

@@ -125,9 +125,6 @@
if(!((substr(decoct(fileperms($logs)), -4) == 750) && (substr(decoct(fileperms($uploads)), -4) == 750) && (substr(decoct(fileperms($images)), -4) == 750)
&& ((substr(decoct(fileperms($importcustomers)), -4) == 640) || (substr(decoct(fileperms($importcustomers)), -4) == 660)))) {
// OR substr(decoct(fileperms($uploads)), -4) != 750
// OR substr(decoct(fileperms($images)), -4) != 750
// OR substr(decoct(fileperms($importcustomers)), -4) != 660) {
echo '<br><font color="red"><strong>' . $this->lang->line('config_security_issue') . '</strong> <br>' . $this->lang->line('config_perm_risk') . '</font><br>';
}
else {