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
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