Make tools connect to $ENV{GRUNTMASTER_DSN} if it exists
[gruntmaster-data.git] / gruntmaster-job
index 126e1d0dea36772fb0d168410f43f36310cc1197..06e3fe14d44edb51f091df1ad96b0a2a839da13e 100755 (executable)
@@ -8,7 +8,8 @@ use POSIX qw/strftime/;
 
 ##################################################
 
-my $db = Gruntmaster::Data->connect('dbi:Pg:');
+my $dsn = $ENV{GRUNTMASTER_DSN} // 'dbi:Pg:';
+my $db = Gruntmaster::Data->connect($dsn);
 
 sub cmd_help{
        exec perldoc => $0
This page took 0.010964 seconds and 4 git commands to generate.