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

Automatic catalog creation on mysql doesnt work #5

Open
project0 opened this issue Aug 21, 2017 · 1 comment
Open

Automatic catalog creation on mysql doesnt work #5

project0 opened this issue Aug 21, 2017 · 1 comment

Comments

@project0
Copy link
Collaborator

running the following commands fails if the catalog is mysql (probably postgresql as well):
/usr/lib/bareos/scripts/create_bareos_database && /usr/lib/bareos/scripts/make_bareos_tables && /usr/lib/bareos/scripts/grant_bareos_privileges
It requires to pass the credentials to the commands.

This is something which needs to be improved. I think create_bareos_database, grant_bareos can be removed as we should provide usually an user with grants and schema.

@hsahmed
Copy link

hsahmed commented Sep 13, 2018

For posgresql the script works when run as postgres user (su postgres -c /usr/lib/bareos/scripts/create_bareos_database). Maybe a conditional statement can be added in director.pp to check if DB is postgres and change the exec user to postgres if it is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants