Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #37883 - halt if remote DB does not own EVR #984

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

ianballou
Copy link
Contributor

Checks if the postgres user owns the evr extension. If it does, halt the foreman-installer and report an error with the command to run to fix the permissions.

Also check if postgres is the foreman DB owner. In that case, don't do anything because the migration will succeed.

There's no provision if the admin user is called something other than postgres. Should there be?

@ianballou
Copy link
Contributor Author

ianballou commented Oct 5, 2024

To-do: skip the entire hook if the database is local.
Edit: done

@ianballou ianballou force-pushed the 37883-halt-installer-evr-permissions branch 2 times, most recently from 696bcf1 to 01803e4 Compare October 7, 2024 15:04
@ianballou ianballou requested a review from ekohl October 7, 2024 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant