A free open source IT asset/license management system
Moved import time limit inside class, added new backup time limit
Brady Wetherington4b7a06761a59
diff --git a/app/Console/Commands/ObjectImportCommand.php b/app/Console/Commands/ObjectImportCommand.phpindex b79949521a..2c7900c152 100644--- a/app/Console/Commands/ObjectImportCommand.php+++ b/app/Console/Commands/ObjectImportCommand.php@@ -8,8 +8,6 @@ use Symfony\Component\Console\Input\InputOption;use Illuminate\Support\Facades\Log;use Symfony\Component\Console\Helper\ProgressIndicator;-ini_set('max_execution_time', env('IMPORT_TIME_LIMIT', 600)); //600 seconds = 10 minutes-ini_set('memory_limit', env('IMPORT_MEMORY_LIMIT', '500M'));/*** Class ObjectImportCommand@@ -52,6 +50,9 @@ class ObjectImportCommand extends Command*/public function handle(){+ ini_set('max_execution_time', env('IMPORT_TIME_LIMIT', 600)); //600 seconds = 10 minutes+ ini_set('memory_limit', env('IMPORT_MEMORY_LIMIT', '500M'));+$this->progressIndicator = new ProgressIndicator($this->output);$filename = $this->argument('filename');diff --git a/app/Console/Commands/SystemBackup.php b/app/Console/Commands/SystemBackup.phpindex 3b51bcc736..fda95794d7 100644--- a/app/Console/Commands/SystemBackup.php+++ b/app/Console/Commands/SystemBackup.php@@ -37,6 +37,8 @@ class SystemBackup extends Command*/public function handle(){+ ini_set('max_execution_time', env('BACKUP_TIME_LIMIT', 600)); //600 seconds = 10 minutes+if ($this->option('filename')) {$filename = $this->option('filename');