Show
Ignore:
Timestamp:
30.05.2013 20:53:34 (6 years ago)
Author:
ak19
Message:

Resetting gsdlhome (reset-gsdlhome command) should not just update the perl shebang for gliserver.pl but also checksum.pl and metadata-server.pl

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/gsicontrol.sh

    r24953 r27521  
    179179    relocate=yes ; 
    180180 
    181 # don't just update gsdlsite.cfg, but also the path to perl at the top of gliserver.pl 
     181# don't just update gsdlsite.cfg, but also the path to perl at the top of gliserver.pl and the other cgi-bin perl files 
    182182# if this is a perl included with the Greenstone distribution 
    183183    if test -e "$GSDLHOME/$cgibin/gsdlsite.cfg" ; then 
     
    193193        sed "s@$stored_gsdlhome@$GSDLHOME@g" "$gliserverfile.bak" > "$gliserverfile" ; 
    194194        rm -f "$gliserverfile.bak" ; 
     195 
     196        metaserverfile=$GSDLHOME/$cgibin/metadata-server.pl ; 
     197        /bin/cp "$metaserverfile" "$metaserverfile.bak" ;        
     198        sed "s@$stored_gsdlhome@$GSDLHOME@g" "$metaserverfile.bak" > "$metaserverfile" ; 
     199        rm -f "$metaserverfile.bak" ; 
     200 
     201        checksumfile=$GSDLHOME/$cgibin/checksum.pl ; 
     202        /bin/cp "$checksumfile" "$checksumfile.bak" ;        
     203        sed "s@$stored_gsdlhome@$GSDLHOME@g" "$checksumfile.bak" > "$checksumfile" ; 
     204        rm -f "$checksumfile.bak" ; 
    195205        fi 
    196206