mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-16 04:50:09 -04:00
Increase timeout on migration (#2992)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user