Public bug reported:
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
** Affects: pacemaker (Ubuntu)
Importance: Undecided
Status: New
--
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 “pacemaker” 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/pacemaker/+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