Ignore:
Timestamp:
2011-04-21T18:01:39+12:00 (13 years ago)
Author:
ak19
Message:

First set of changes to the gsicontrol scripts to introduce the reset-gsdlhome flag. Still need to deal with the GSDLHOME placeholders in the Mac .app files and need to create their template .in files

File:
1 edited

Legend:

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

    r23726 r23945  
    139139}
    140140
     141# forces configure-cgi by deleting gsdlsite.cfg
     142function reset-gsdlhome {   
     143    if test -e "$GSDLHOME/cgi-bin/gsdlsite.cfg" ; then
     144    echo "**** WARNING. Local changes made to $GSDLHOME/cgi-bin/gsdlsite.cfg will be lost.";
     145    rm -f "$GSDLHOME/cgi-bin/gsdlsite.cfg";
     146    fi
     147    configure-web $1
     148}
     149
    141150function web-status {
    142151    test-gsdlhome
     
    211220    echo "   configure-apache [config-filename]"
    212221    echo "   configure-cgi"
     222    echo "   reset-gsdlhome [config-filename]\n\t(Save a copy of cgi-bin/gsdlsite.cfg to preserve any customisations)"
    213223    echo "   test-gsdlhome"
    214224    echo "   web-stop-tested"
     
    249259    set-port)
    250260    configure-port-and-connection;;
     261    reset-gsdlhome)
     262    reset-gsdlhome;;
    251263    test-gsdlhome)
    252264    test-gsdlhome;;
Note: See TracChangeset for help on using the changeset viewer.