Ignore:
Timestamp:
Jun 1, 2010, 4:34:06 PM (14 years ago)
Author:
shunfa
Message:

單機安裝測試ok

File:
1 edited

Legend:

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

    r139 r140  
    108108
    109109
     110function client_PassMasterIPAddr () {
     111  Line_NO=`cat client_install | grep -n '# Master IP here' | sed 's/:.*//g'`
     112  echo "debug...Master IP here line number = $Line_NO..."
     113  sed -i ''$((Line_NO+1))'d' client_install
     114  echo "debug...edit Master IP at line $((Line_NO+1))..."
     115  sed -i ''$Line_NO'a Master_IP_Address='$MasterIP_Address'' client_install
     116  echo "edit client_install done..."
     117}
     118
    110119function make_client_install () {
    111120  # 將Master_IP_Address給client
    112121  # 打包安裝目錄(不含tomcat)
    113   # tar -czv /opt/nutchez/nutch NutchezFor_$Master_IP_Client.tar.gz
    114   echo "undo... function make_client_install"
     122  echo "function make_client_install..."
     123  client_PassMasterIPAddr
     124  su nutchuser -c "mkdir /opt/nutchez/nutch/clinet_install"
     125  cp client_install client_install_func.sh /opt/nutchez/nutch/clinet_install
     126  tar -cvzf /opt/nutchez/NutchezForClientOf_$Master_IP_Address.tar.gz  /opt/nutchez/nutch
    115127}
    116128
Note: See TracChangeset for help on using the changeset viewer.