Andrew- Thanks for reporting and helping make Ubuntu better! There was an upstream commit that addressed this [1] which we should consider carrying going into 12.04. Lars also committed a couple of other trivial bashism fixes to other RAs that address the same issue for other services. Considering carrying those in the same patch since they affect Ubuntu, especially
https://github.com/ClusterLabs/resource- agents/commit/6a53fbb3e723483bb1003529debc507154ce3509 ** Package changed: pacemaker (Ubuntu) => resource-agents (Ubuntu) ** Changed in: resource-agents (Ubuntu) Importance: Undecided => Low -- You received this bug notification because you are a member of Ubuntu High Availability Team, which is subscribed to pacemaker in Ubuntu. https://bugs.launchpad.net/bugs/957913 Title: pgsql resource agent uses == in test operator Status in “resource-agents” package in Ubuntu: New Bug description: OS release: Ubuntu 12.04 beta Package: pacemaker The pgsql OCF resource agent (/usr/lib/ocf/resource.d/heartbeat/pgsql) uses == in a test operator on line 647. This is a bashism, and fails as the interpreter is /bin/sh which is dash in Ubuntu. The following patch fixes this issue: --- pgsql.old 2012-03-17 00:10:26.368857162 +0000 +++ pgsql 2012-03-17 00:10:37.116721741 +0000 @@ -644,7 +644,7 @@ pgsql_validate_all rc=$? -[ "$1" == "validate-all" ] && exit $rc +[ "$1" = "validate-all" ] && exit $rc if [ $rc -ne 0 ] then To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/resource-agents/+bug/957913/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~ubuntu-ha Post to : [email protected] Unsubscribe : https://launchpad.net/~ubuntu-ha More help : https://help.launchpad.net/ListHelp

