Commit fe989a49 authored by Martin Pitt's avatar Martin Pitt

pg_createcluster: Print configuration and data directory on separate

lines, and also show the current locale that the cluster will use.
(Closes: #700271)
parent 6fd5d144
......@@ -12,6 +12,9 @@ postgresql-common (141) UNRELEASED; urgency=low
deprecated now, moving to apt.postgresql.org.
* pg_createcluster: Drop "Moving configuration file.." message as it's not
all that interesting and we are going to add more status output.
* pg_createcluster: Print configuration and data directory on separate
lines, and also show the current locale that the cluster will use.
(Closes: #700271)
-- Christoph Berg <myon@debian.org> Fri, 01 Feb 2013 10:51:05 +0100
......
......@@ -19,7 +19,7 @@
use lib '/usr/share/postgresql-common';
use PgCommon;
use Getopt::Long;
use POSIX qw/setlocale LC_ALL/;
use POSIX qw/setlocale LC_ALL LC_CTYPE/;
$ENV{'PATH'} = '/bin:/usr/bin'; # untaint
......@@ -348,7 +348,8 @@ if (-f "$datadir/PG_VERSION") {
error "$datadir already contains a version $existingver cluster";
}
} else {
print "Creating new cluster (configuration: $confdir, data: $datadir)...\n";
my $loc = setlocale (LC_CTYPE);
print "Creating new cluster...\n configuration\t:$confdir\n data\t\t: $datadir\n locale\t: $loc\n";
init_db $version, $datadir, $owneruid, $ownergid, \@initdb_opts_from_cli;
$newcluster = 1;
}
......@@ -397,7 +398,7 @@ set_cluster_socketdir $version, $cluster, $socketdir if $socketdir;
$> = $orig_euid;
$) = $orig_egid;
print "Configuring postgresql.conf to use port $port...\n";
print " port\t\t: $port\n";
set_cluster_port $version, $cluster, $port;
# create log file
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment