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

Fix PostgreSQL user database check when feature disabled #378

Closed timmullin closed 8 months ago

timmullin commented 8 months ago

Case RE-188:

Instead of, rather inefficiently, invoking uapi for each user, get the users with postgres databases from the dbindex.db.json file. This will quickly get that list of users regardless of the status of the postgres feature.

Changelog: Improve the check for PostgreSQL users to be more efficient and to not throw errors if the feature is disabled for any of the users.

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