summaryrefslogtreecommitdiff
path: root/perl-lib/PgCommitFest/Request.pm
diff options
context:
space:
mode:
authorRobert Haas2009-05-23 02:54:01 +0000
committerRobert Haas2009-05-23 02:54:01 +0000
commita1bb7bcda0069888fb580d0b7089bd9e3634de06 (patch)
tree9f81049b3eea3dba27b93056f7a51ba0cdbed55b /perl-lib/PgCommitFest/Request.pm
parenta60a6817d968c50d06958d4010cee84afbb58502 (diff)
Eliminate dependencies on any particular absolute path.
Also, use pgcommitfest for database & database username, rather than commitfest and rhaas respectively.
Diffstat (limited to 'perl-lib/PgCommitFest/Request.pm')
-rw-r--r--perl-lib/PgCommitFest/Request.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-lib/PgCommitFest/Request.pm b/perl-lib/PgCommitFest/Request.pm
index 7e3e878..4ceaf7f 100644
--- a/perl-lib/PgCommitFest/Request.pm
+++ b/perl-lib/PgCommitFest/Request.pm
@@ -7,7 +7,9 @@ require Template::Plugin::HTML;
use strict;
use warnings;
-our $ROOT = '/home/rhaas/commitfest';
+die "Must set PGCOMMITFEST_ROOT to root directory of installation!\n"
+ if !defined $ENV{'PGCOMMITFEST_ROOT'} || ! -d $ENV{'PGCOMMITFEST_ROOT'};
+our $ROOT = $ENV{'PGCOMMITFEST_ROOT'};
our $template = Template->new({ 'INCLUDE_PATH' => $ROOT . '/template',
'FILTERS' => { 'htmlsafe' => \&PgCommitFest::WebControl::escape } });
$CGI::POST_MAX = 65536;