Ignore:
Timestamp:
2012-01-18T20:57:09+13:00 (12 years ago)
Author:
ak19
Message:

For non-standard collecthome specified in gsdlsite.cfg on linux, need to remove any extraneous quotes around collecthome before writing it into the apache httpd.conf file.

File:
1 edited

Legend:

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

    r24901 r24953  
    105105    fi
    106106    echo "Setting config file to use port $port";
     107# Need to remove extra quotes around $collecthome. ${string//abc/xyz} does a replace all on abc with xyz
    107108    cat "$GSDLHOME/apache-httpd/$GSDLOS$GSDLARCH/conf/httpd.conf.in" \
    108109    | sed "s@\*\*GSDL_OS_ARCH\*\*@$GSDLOS$GSDLARCH@g" \
     
    111112    | sed "s@\*\*HOST_IP\*\*@$hostIP@g" \
    112113    | sed "s@\*\*HOSTS\*\*@$hosts@g" \
    113     | sed "s@\*\*COLLECTHOME\*\*@$collecthome@g" \
     114    | sed "s@\*\*COLLECTHOME\*\*@${collecthome//\"/}@g" \
    114115    | sed "s@\*\*GSDLHOME\*\*@$GSDLHOME@g" \
    115116    | sed "s@\*\*APACHE_HOME_OS\*\*@$GSDLHOME/apache-httpd/$GSDLOS$GSDLARCH@g" \
Note: See TracChangeset for help on using the changeset viewer.