cpanel / elevate

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

Restore EA4 config files based on package prefix #489

Closed cPholloway closed 2 months ago

cPholloway commented 3 months ago

Case RE-499: The restore logic for EA4 config files was broken when the packages were provided by either CloudLinux's EA4 repo or Imunify's hardened PHP repo. This was because the restore logic was gathering the EA4 packages based on the repoid that they came from, but the regex only took cPanel's version of EA4 into account. This change makes it so that we gather these packages based on the package prefix of 'ea-' so that the config files for the installed packages are always gathered regardless of which repo provides them.

Fixes #486

Changelog: Fix restore logic for config files of packages provided by EA4

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

troglodyne commented 2 months ago

Testing checks out good on my end, I think it should be merged