Skip to content

Commit

Permalink
Update also inactive modules via freescout:module-update command
Browse files Browse the repository at this point in the history
  • Loading branch information
freescout-help-desk committed Jun 13, 2024
1 parent 4d7f8d1 commit 4b2dd40
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/Console/Commands/ModuleUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,11 @@ public function handle()

// Detect if new version is available.
foreach ($installed_modules as $module) {
if ($module->getAlias() != $dir_module['alias'] || !$module->active()) {
if ($module->getAlias() != $dir_module['alias'] /*|| !$module->active()*/) {
continue;
}
if (!empty($dir_module['version']) && version_compare($dir_module['version'], $module->get('version'), '>')) {

$update_result = \App\Module::updateModule($dir_module['alias']);

$this->info('['.$update_result['module_name'].' Module'.']');
Expand All @@ -94,7 +95,8 @@ public function handle()
}
}

// Loop through each installed module
// Update custom modules.
// Loop through each installed module.
foreach ($installed_modules as $module) {
// Skip if the module is an official one
if (\App\Module::isOfficial($module->get('authorUrl'))) {
Expand Down

0 comments on commit 4b2dd40

Please sign in to comment.