Default user to davical_dba & provide more help regarding .pgpass files.

This commit is contained in:
Andrew McMillan 2010-02-18 21:12:54 +13:00
parent 33a1a78490
commit b966686a71

View File

@ -15,7 +15,7 @@ use Getopt::Long qw(:config permute); # allow mixed args.
my $debug = 0;
my $dbname = "davical";
my $dbport = 5432;
my $dbuser = "";
my $dbuser = "davical_dba";
my $dbpass = "";
my $dbhost = "";
my $appuser = "davical_app";
@ -446,7 +446,13 @@ the correct minimum permissions for the web application user.
Rather than providing a password on the command-line it is recommended
that you use a .pgpass file in your home directory to hold the database
password. This file must be mode 600 to work.
password. This file must be mode 600 to work and should have lines
like:
hostname:port:database:username:password
Each bit can be replaced by an asterisk, e.g:
*:*:davical:davical_dba:53cr3t
OPTHELP
exit 0;