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

fix FreeBSD support for backups #697

Merged
merged 1 commit into from
Apr 13, 2015
Merged

fix FreeBSD support for backups #697

merged 1 commit into from
Apr 13, 2015

Conversation

fraenki
Copy link
Contributor

@fraenki fraenki commented Mar 30, 2015

The mysql::backup::* classes still use the hardcoded group name root, which is not available on FreeBSD systems. This patch changes this to use the param mysql::params::root_group instead. Besides that it utilizes /bin/sh instead of /bin/bash on systems other than Linux.

@@ -5,7 +5,7 @@
$backupdir,
$backupdirmode = '0700',
$backupdirowner = 'root',
$backupdirgroup = 'root',
$backupdirgroup = $mysql::params::root_group,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be $mysql::root_group?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, we might use $mysql::root:group here, but this module's style is to use $mysql::params::* elsewhere.

igalic added a commit that referenced this pull request Apr 13, 2015
fix FreeBSD support for backups
@igalic igalic merged commit eb3fa4e into puppetlabs:master Apr 13, 2015
@igalic
Copy link
Contributor

igalic commented Apr 13, 2015

true, true!
thanks @fraenki!

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

Successfully merging this pull request may close these issues.

3 participants