Changeset 196 for nutchez-0.2/src/test


Ignore:
Timestamp:
Jun 17, 2010, 10:55:14 AM (14 years ago)
Author:
rock
Message:

增加工作路徑的判斷

Location:
nutchez-0.2/src/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • nutchez-0.2/src/test/client_install

    r194 r196  
    1818Linux_Version="";
    1919Nutchuser_Passwd="xxxxxxxxxx";
    20 Work_Path=$(echo $0 | sed 's/client_install//')
     20Work_Path="./"
     21Work_Path_J=0
    2122
     23# Work Path Setup
     24echo $0 | grep '/' || Work_Path_J=1
     25if [ "$Work_Path_J" == "0"  ]; then
     26    Work_Path=$(echo $0 | sed 's/client_install//')
     27fi
    2228# Source functions
    2329source $Work_Path/client_install_func.sh
  • nutchez-0.2/src/test/nutchez

    r194 r196  
    1818Tomcat_HOME="/opt/nutchez/tomcat"
    1919NutchEZ_HOME="/home/nutchuser/nutchez"
    20 Work_Path=$(echo $0 | sed 's/client_install//')
     20Work_Path="./"
     21Work_Path_J=0
     22
     23# Roek Path setup
     24echo $0 | grep '/' || Work_Path_J=1
     25if [ "$Work_Path_J" == "0"  ]; then
     26  Work_Path=$(echo $0 | sed 's/nutchez//')
     27fi
    2128
    2229# [Env Declaration] #
Note: See TracChangeset for help on using the changeset viewer.