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

Validate script can execute start option before parsing upgrade_to #401

Closed cPholloway closed 5 months ago

cPholloway commented 5 months ago

Case RE-265: The start option had an order of operations issue where it would attempt to parse the upgrade_to option before validating that it could start / was not already running. Since parsing the upgrade_to option validates that the distro is appropriate, it would clear the Elevate::OS cache which could result in the script dying once leapp finished elevating. This change ensures that the validation that the script can start occurs before parsing the upgrade_to option.

Changelog: Validate script can execute start option before parsing upgrade_to option

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