Skip to content

Commit

Permalink
Merge pull request #712 from nabeelio/707-Module-Enable
Browse files Browse the repository at this point in the history
Make sure the Updater module is enabled #707
  • Loading branch information
nabeelio committed May 22, 2020
2 parents 1ebb181 + eb90d08 commit fb7d988
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Http/Controllers/Admin/MaintenanceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Log;
use Laracasts\Flash\Flash;
use Nwidart\Modules\Facades\Module;

class MaintenanceController extends Controller
{
Expand Down Expand Up @@ -110,6 +111,10 @@ public function update(Request $request)
{
$new_version_tag = $this->kvpRepo->get('latest_version_tag');
Log::info('Attempting to update to '.$new_version_tag);

$module = Module::find('updater');
$module->enable();

return redirect('/update/downloader');
}
}

0 comments on commit fb7d988

Please sign in to comment.