Skip to content
Snippets Groups Projects
Commit 268daa99 authored by Martin Pitt's avatar Martin Pitt
Browse files

Give a meaningful error message if no client packages are installed (#326771)

parent 88a5d082
No related branches found
No related tags found
No related merge requests found
......@@ -10,8 +10,11 @@ postgresql-common (26) unstable; urgency=low
* debian/postgresql-common.postinst: Remove --no-create-home option from
adduser call to ensure that the postgres user always has a sensible home
directory that does not break "su - postgres".
* pg_wrapper: Give a meaningful error message if no client packages are
installed, instead of "Invalid PostgreSQL cluster version".
Closes: #326771
-- Martin Pitt <mpitt@debian.org> Fri, 2 Sep 2005 12:12:45 +0200
-- Martin Pitt <mpitt@debian.org> Mon, 5 Sep 2005 23:07:40 +0200
postgresql-common (25) unstable; urgency=low
......
......@@ -52,6 +52,8 @@ if ($cluster) {
$ENV{'PGPORT'} = "$port" if $port;
$ENV{'PGDATABASE'} = $db if $db;
error 'You must install at least one postgresql-client-<version> package.' unless $version;
@args = (get_program_path ($cmd, $version));
error 'Invalid PostgreSQL cluster version' unless $args[0];
push @args, @ARGV;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment