diff --git a/dba/update-davical-database b/dba/update-davical-database index 71b8580b..cde577bc 100755 --- a/dba/update-davical-database +++ b/dba/update-davical-database @@ -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;