Take config filename from an environment variable if it exists.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 21 Jun 2015 23:29:28 +0000 (01:29 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 21 Jun 2015 23:29:28 +0000 (01:29 +0200)
config.pm

index b169e07..2bb1974 100644 (file)
--- a/config.pm
+++ b/config.pm
@@ -67,5 +67,6 @@ our @masters = (
 our $tb_serial_key = undef;
 
 eval {
-       require 'config.local.pm';
+       my $config_filename = $ENV{'REMOTEGLOT_CONFIG'} // 'config.local.pm';
+       require $config_filename;
 };