Changeset 240 for nutchez-0.2/src


Ignore:
Timestamp:
Jun 29, 2010, 1:59:23 PM (14 years ago)
Author:
shunfa
Message:

修改client_deploy.sh

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

Legend:

Unmodified
Added
Removed
  • nutchez-0.2/src/shell/client_deploy.sh

    r239 r240  
    11#!/bin/bash
    2 
     2# Master IP here
    33MasterIP_Address=your.master.ip.here
    44
  • nutchez-0.2/src/shell/install_func.sh

    r234 r240  
    449449
    450450
     451function client_PassMasterIPAddr_for_deploy () {
     452  cd $Work_Path
     453  Line_NO=`cat client_deploy | grep -n "# Master IP here" | sed 's/:.*//g'`
     454  sed -i ''$((Line_NO+1))'d' client_deploy
     455  sed -i ''$Line_NO'a Master_IP_Address='$MasterIP_Address'' client_deploy
     456}
     457
    451458function make_client_install () {
    452459  # 建立資料夾(用來存放client的安奘檔)
     
    462469  client_PassMaster_Hostname
    463470  client_PassMasterIPAddr_for_Remove
     471  client_PassMasterIPAddr_for_deploy
    464472  cd /opt/nutchez/
    465473  su nutchuser -c "tar -cvzf NutchezForClientOf_$MasterIP_Address.tar.gz  nutch"
Note: See TracChangeset for help on using the changeset viewer.