-
Notifications
You must be signed in to change notification settings - Fork 795
fix FreeBSD support for backups #697
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
<%- if @kernel == 'Linux' -%> | ||
#!/bin/bash | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we can probably set this unconditionally, since we're not really using any oh… |
||
<%- else -%> | ||
#!/bin/sh | ||
<%- end -%> | ||
# | ||
# MySQL Backup Script | ||
# Dumps mysql databases to a file for another backup tool to pick up. | ||
|
@@ -27,7 +31,9 @@ PATH=<%= @execpath %> | |
|
||
|
||
|
||
<%- if @kernel == 'Linux' -%> | ||
set -o pipefail | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we actually are… There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wondering if we can make the shell dependent on whether There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If simplification would be the main goal, I'd always opt to change the script to rely on (a POSIX-conformant) |
||
<%- end -%> | ||
|
||
cleanup() | ||
{ | ||
|
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.