--- svn/index.cgi 2008/10/27 20:34:27 47 +++ svn/index.cgi 2008/10/27 22:03:31 48 @@ -15,6 +15,12 @@ my $config_path = $0; $config_path =~ s/.cgi/.js/; + +my $hostname = `hostname -s`; +chomp($hostname); +$hostname .= '.js'; +$config_path = $hostname if -e $hostname; + my $config = from_json( read_file( $config_path ) ); my $repository_dir = $config->{repository_dir} || die "no repository_dir in $config_path"; my $svnweb = $config->{svnweb} || die "no svnweb in $config_path";