- Timestamp:
- 2019-04-12T19:36:30+12:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/common-src/cgi-bin/image-server.pl
r24872 r33011 4 4 5 5 use strict; 6 7 8 BEGIN { 9 # On Ubuntu 18.04, gsdlCGI.pm can't be found as the cgi folder is not among @INC paths. 10 # Ensure gsdlCGI.pm is available in @INC by adding the cgi folder to it. 11 # For GS2: 12 my $gsdl_cgi_path = $ENV{'GSDLHOME'} . "/cgi-bin"; 13 # For GS3: 14 $gsdl_cgi_path = $ENV{'GSDL3HOME'} . "/WEB-INF" . "/cgi" if defined $ENV{'GSDL3HOME'}; 15 16 my $found_cgi_path = 0; 17 foreach my $inc_path (@INC) { 18 if($inc_path eq $gsdl_cgi_path) { 19 $found_cgi_path = 1; 20 last; 21 } 22 } 23 if(!$found_cgi_path) { 24 unshift (@INC, $gsdl_cgi_path); 25 } 26 } 6 27 7 28
Note:
See TracChangeset
for help on using the changeset viewer.