Changeset 204


Ignore:
Timestamp:
Jun 17, 2010, 4:57:35 PM (14 years ago)
Author:
shunfa
Message:

修改client移除程式

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

Legend:

Unmodified
Added
Removed
  • nutchez-0.2/src/test/client_remove.sh

    r203 r204  
    1010
    1111
    12 # TODO:
    13 # 此一shell 檔需於安裝時scp至system目錄下
    1412source ./lang_zh_TW_client_remove
    1513# 需要 master_install 設定的參數區
  • nutchez-0.2/src/test/install_func.sh

    r203 r204  
    391391}
    392392
     393function client_PassMasterIPAddr_for_Remove () {
     394  cd $Start_PATH
     395  Line_NO=`cat client_remove.sh grep -n '# Master IP here' | sed 's/:.*//g'`
     396  sed -i ''$((Line_NO+1))'d' client_remove.sh
     397  sed -i ''$Line_NO'a Master_IP_Address='$MasterIP_Address'' client_remove.sh
     398}
     399
    393400
    394401function make_client_install () {
     
    404411  client_PassMasterIPAddr
    405412  client_PassMaster_Hostname
     413  client_PassMasterIPAddr_for_Remove
    406414  cd /opt/nutchez/
    407415  su nutchuser -c "tar -cvzf NutchezForClientOf_$MasterIP_Address.tar.gz  nutch"
Note: See TracChangeset for help on using the changeset viewer.