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

bashism in pgsql #403

Closed
ktosiek opened this issue Apr 2, 2014 · 3 comments
Closed

bashism in pgsql #403

ktosiek opened this issue Apr 2, 2014 · 3 comments

Comments

@ktosiek
Copy link

ktosiek commented Apr 2, 2014

The pgsql agent has /bin/sh in a hashbang, and uses ${variable//match/replace/} syntax at

sed -i "/${rep_mode_string//\//\\/}/d" $OCF_RESKEY_config
.
This syntax does not work in dash (which is default /bin/sh in Ubuntu), I think it's bash-specific. Can either the replace or the hashbang be changed?

@kskmori
Copy link

kskmori commented Apr 3, 2014

Thanks for pointing out.
You're right, we had missed to run checkbashisms before applying this particular patch.
I'm going to fix it.

@knakahira
Copy link
Contributor

Hi ktosiek,
I made a patch for this issue.
knakahira@572c32a
Please test it in your environment and tell me if you have any problems.

@kskmori
Copy link

kskmori commented Apr 23, 2014

Closing as it is fixed in #411.

@kskmori kskmori closed this as completed Apr 23, 2014
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

3 participants