[Debian-ha-maintainers] Bug#716678: resource-agents: pgsql: bashism

Václav Ovsík vaclav.ovsik at gmail.com
Thu Jul 11 10:57:27 UTC 2013


Package: resource-agents
Version: 1:3.9.2-5+deb7u1
Severity: normal
File: /usr/lib/ocf/resource.d/heartbeat/pgsql

Dear Maintainer,
HA cluster with configured PostgreSQL log:

Jul 11 11:02:19 ser2 lrmd: [8924]: info: RA output: (postgres:monitor:stderr) /usr/lib/ocf/resource.d//heartbeat/pgsql: 647: [: monitor: unexpected operator

every minute :(.

There is the bashism on the line num. 647. Easy fix:

--- pgsql~	2013-01-06 23:50:54.000000000 +0100
+++ pgsql	2013-07-11 11:11:47.164778276 +0200
@@ -644,7 +644,7 @@
 pgsql_validate_all
 rc=$?
 
-[ "$1" == "validate-all" ] && exit $rc
+[ "$1" = "validate-all" ] && exit $rc
 
 if [ $rc -ne 0 ]
 then

This bug is fixed in unstable version 1:3.9.3+git20121009-3.
Thanks for your work!
Cheers
-- 
Zito


-- System Information:
Debian Release: 7.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages resource-agents depends on:
ii  cluster-glue  1.0.9+hg2665-1
ii  libc6         2.13-38
ii  libglib2.0-0  2.33.12+really2.32.4-5
ii  libnet1       1.1.4-2.1
ii  libplumb2     1.0.9+hg2665-1
ii  libplumbgpl2  1.0.9+hg2665-1
ii  python        2.7.3-4

resource-agents recommends no packages.

resource-agents suggests no packages.

-- no debconf information



More information about the Debian-ha-maintainers mailing list