ClusterLabs / fence-agents

Fence agents
104 stars 157 forks source link

Execute source using /bin/bash not /bin/sh #547

Open shinglerb opened 1 year ago

shinglerb commented 1 year ago

Attempting to execute source in /bin/sh doesn't work if /bin/sh isn't bash

knet-ci-bot commented 1 year ago

Can one of the admins verify this patch?

knet-jenkins[bot] commented 1 year ago

Can one of the admins check and authorise this run please: https://ci.kronosnet.org/job/fence-agents-pipeline/job/PR-547/1/input

oalbrigt commented 1 year ago

It seems like replacing source with . should fix this issue.

DEmmons commented 1 month ago

I can confirm this still causes issues on Ubuntu 24.04, for what it's worth. I ran into it with the fence_openstack agent. Two good resolutions have been suggested, and it seems that determining which one is better needs to be informed by the intention of compatibility:

To sum up, unless I've misunderstood project goals, this PR looks like the right solution.