Ignore:
Timestamp:
2011-02-24T15:48:00+13:00 (13 years ago)
Author:
ak19
Message:

Fixing yesterday's addition of the JODCONVERTER_PORT env var to work on Linux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/open-office/trunk/src/perllib/plugins/OpenOfficeConverter.pm

    r23735 r23738  
    6565        my $cmd = "soffice -headless 2>&1"; # for linux and mac
    6666
     67        # The port that jodconverter uses to connect to soffice.
     68        # We set this to 8100 (else jodconverter would have used
     69        # 2002 as the port number, which can clash with some programs
     70        # such as LogMeIn. Users can specify another port by setting
     71        # the environment variable in setup.bat or <ext>-setup.pl.
     72        if(!defined $ENV{'JODCONVERTER_PORT'}) {
     73        $ENV{'JODCONVERTER_PORT'} = "8100";
     74        }
     75
    6776        if ($ENV{'GSDLOS'} =~ m/^windows$/) {       
    6877        if(!defined $ENV{'SOFFICE_HOST'}) {
     
    7180        if(!defined $ENV{'SOFFICE_PORT'}) {
    7281            $ENV{'SOFFICE_PORT'} = "8200";
    73         }
    74         if(!defined $ENV{'JODCONVERTER_PORT'}) {
    75             $ENV{'JODCONVERTER_PORT'} = "8100";
    7682        }
    7783        # important to have this set when the Greenstone server
Note: See TracChangeset for help on using the changeset viewer.