pgsql resource agent uses == in test operator
Bug #957913 reported by
Andrew Mobbs
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
resource-agents (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
OS release: Ubuntu 12.04 beta
Package: pacemaker
The pgsql OCF resource agent (/usr/lib/
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
Related branches
To post a comment you must log in.
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/ 6a53fbb3e723483 bb1003529debc50 7154ce3509