cpanel / elevate

elevate your cPanel&WHM CentOS 7 server to Almalinux 8
https://cpanel.github.io/elevate/
BSD 2-Clause "Simplified" License
45 stars 29 forks source link

Move logic for prepping cPanel for leapp to a component. #417

Closed sfbee closed 4 months ago

sfbee commented 4 months ago

Case RE-122: This change moves logic meant to prep cPanel services for the leapp into a component, adds a call to flush the cPanel task queue before leapping, and adds unit test coverage for all of the above.

Changelog: Move logic for prepping cPanel services to leapp into a component, and flush task queue before leapp.

By submitting pull requests to this repo, I agree to the Contributor License Agreement which can be found at: https://github.com/cpanel/elevate/blob/main/docs/cPanel-CLA.pdf

timmullin commented 4 months ago

I think we need to rebase this off of the latest in the main branch. When I look at the changes in scripts/elevate-cpanel.PL I'm not sure whether the line containing $self->run_component_once( 'cPanelPrep', => 'pre_leapp' ); will end up before or after $self->run_component_once( 'DatabaseUpgrade' => 'pre_leapp' );; and it needs to come after.