Changeset 17808


Ignore:
Timestamp:
2008-11-11T14:43:14+13:00 (15 years ago)
Author:
oranfry
Message:

uninstaller fixes

Location:
release-kits/shared/uninstaller
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • release-kits/shared/uninstaller/Uninstall.sh

    r17794 r17808  
    11if [ -f "setup.bash" ]; then
    2 #This is Greenstone 2
     2    #This is Greenstone 2
    33    . ./setup.bash > /dev/null
    44    SEARCH4J_EXECUTABLE=$GSDLHOME/bin/$GSDLOS/search4j
    5 else
    6 #This is Greenstone 3
     5
     6elif [ -f "gs2build/setup.bash" ]; then
     7    #This is Greenstone 3
    78    . ./gs2build/setup.bash > /dev/null
    89    SEARCH4J_EXECUTABLE=./bin/search4j
     10
     11else
     12    echo "Couldn't find setup.bash. This copy of Greenstone appears to be corrupt."
     13    echo "To manually uninstall, please delete the entire Greenstone home folder."
     14    exit
    915fi
    1016
     
    1723if [ -e "uninst.flag" ]; then
    1824
    19     rm -rf packages/jre
    20     rmdir packages
     25    rm -rf packages/jre &> /dev/null
     26    rmdir packages &> /dev/null
    2127   
    22     rm -rf bin
     28    rm -rf bin &> /dev/null
    2329       
    24     rm uninst.jar
    25     rm uninst.flag
    26     rm Uninstall.*
     30    rm uninst.jar &> /dev/null
     31    rm uninst.flag &> /dev/null
     32    rm Uninstall.* &> /dev/null
    2733   
    2834    CONTENTS=`ls`
     
    3036        GSDEL=`pwd`
    3137        cd ..
    32         rmdir $GSDEL
     38        rmdir $GSDEL &> /dev/null
    3339    fi
    3440fi
Note: See TracChangeset for help on using the changeset viewer.