Changeset 171 for nutchez-0.2/src/test/nutchez
- Timestamp:
- Jun 9, 2010, 3:11:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
nutchez-0.2/src/test/nutchez
r170 r171 14 14 #LIST_Option="off" 15 15 16 # PATH Declaration 17 NutchEZ_Install_PATH=/opt/nutchez 18 NutchEZ_HOME=/home/nutchuser/nutchez 19 16 20 # Functions Declaration # 17 21 ## Prepare Check ## 18 22 function prepare_check(){ 19 if [ ! -e /home/nutchuser/nutch_nodes ]; then23 if [ ! -e $NutchEZ_HOME/system/nutch_nodes ]; then 20 24 $DIALOG --clear --backtitle "= [NutchEz Management Interface] ~by NCHC =" --title "[nutch_nodes Files]" \ 21 --msgbox "Fail: Don't find /home/nutchuser/nutch_nodes !!!" 10 4025 --msgbox "Fail: Don't find $NutchEZ_Source_HOME/nutch_nodes !!!" 10 40 22 26 exit 23 27 fi … … 28 32 29 33 if [ "$?" == "0" ]; then 30 ./duplicate_del /home/nutchuser/nutch_nodes34 ./duplicate_del $NutchEZ_HOME/system/nutch_nodes 31 35 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" 33 37 fi 34 35 38 } 36 39 … … 52 55 function cluster_setup(){ 53 56 54 node_list=$(cat /home/nutchuser/nutch _nodes | awk '{print $1}')57 node_list=$(cat /home/nutchuser/nutchez/nutch_nodes | awk '{print $1}') 55 58 #echo -e $node_list 56 59 #read
Note: See TracChangeset
for help on using the changeset viewer.