Ignore:
Timestamp:
Jun 9, 2010, 3:11:29 PM (15 years ago)
Author:
shunfa
Message:

修改nutch_node path(/home/nutchuser/nutchez/system/nutch_node)

File:
1 edited

Legend:

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

    r170 r171  
    1414#LIST_Option="off"
    1515
     16# PATH Declaration
     17NutchEZ_Install_PATH=/opt/nutchez
     18NutchEZ_HOME=/home/nutchuser/nutchez
     19
    1620# Functions Declaration #
    1721## Prepare Check  ##
    1822function prepare_check(){
    19 if [ ! -e /home/nutchuser/nutch_nodes ]; then
     23if [ ! -e $NutchEZ_HOME/system/nutch_nodes ]; then
    2024    $DIALOG --clear --backtitle "= [NutchEz Management Interface] ~by NCHC =" --title "[nutch_nodes Files]" \
    21     --msgbox "Fail: Don't find /home/nutchuser/nutch_nodes !!!" 10 40
     25    --msgbox "Fail: Don't find $NutchEZ_Source_HOME/nutch_nodes !!!" 10 40
    2226    exit
    2327fi
     
    2832
    2933 if [ "$?" == "0" ]; then
    30     ./duplicate_del /home/nutchuser/nutch_nodes
     34    ./duplicate_del $NutchEZ_HOME/system/nutch_nodes
    3135    echo -e "\nPlz input root password to update /etc/hosts !!!"
    32     su root -c "./duplicate_del /etc/hosts && ./add_hosts /home/nutchuser/nutch_nodes /etc/hosts"
     36    su root -c "./duplicate_del /etc/hosts && ./add_hosts $NutchEZ_HOME/nutch_nodes /etc/hosts"
    3337 fi
    34 
    3538}
    3639
     
    5255function cluster_setup(){
    5356
    54 node_list=$(cat /home/nutchuser/nutch_nodes | awk '{print $1}')
     57node_list=$(cat /home/nutchuser/nutchez/nutch_nodes | awk '{print $1}')
    5558#echo -e $node_list
    5659#read
Note: See TracChangeset for help on using the changeset viewer.