testsuite script does not stop running postgresql clusters correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postgresql-common (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Binary package hint: postgresql-common
The testsuite script in /usr/share/
# temporarily move away existing clusters
for v in $(ls /usr/lib/
if [ -x "/etc/init.
fi
done
However, in Ubuntu 10.10 (maverick) and newer, the postgresql initscript is no longer versioned; it's just /etc/init.
Two things should be done to address this; first, something like the following patch should be applied the testsuite script:
--- a/testsuite 2011-02-02 16:13:30.273258985 -0800
+++ b/testsuite 2011-02-02 16:14:01.109259639 -0800
@@ -42,6 +42,9 @@
fi
done
+if [ -x "/etc/init.
+ /etc/init.
+fi
if [ -d /etc/postgresql ]; then
mv /etc/postgresql /etc/postgresql
and second, it'd be nice if the psql command in /usr/share/
like_program_out 0, 'env LC_MESSAGES=C psql -h 127.0.0.1 -l', 2, qr/could not connect/,
could include the '-w' switch to never prompt for a password.
Fixing this would make the testsuite runnable again under maverick and natty.
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: postgresql-common 111
ProcVersionSign
Uname: Linux 2.6.35-
Architecture: i386
Date: Wed Feb 2 16:06:25 2011
InstallationMedia: Ubuntu-Server 10.10 "Maverick Meerkat" - Release i386 (20101007)
PackageArchitec
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: postgresql-common
tags: | added: patch |
Committed to bzr, thanks Steve!