Changeset 240
- Timestamp:
- Jun 29, 2010, 1:59:23 PM (14 years ago)
- Location:
- nutchez-0.2/src/shell
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
nutchez-0.2/src/shell/client_deploy.sh
r239 r240 1 1 #!/bin/bash 2 2 # Master IP here 3 3 MasterIP_Address=your.master.ip.here 4 4 -
nutchez-0.2/src/shell/install_func.sh
r234 r240 449 449 450 450 451 function 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 451 458 function make_client_install () { 452 459 # 建立資料夾(用來存放client的安奘檔) … … 462 469 client_PassMaster_Hostname 463 470 client_PassMasterIPAddr_for_Remove 471 client_PassMasterIPAddr_for_deploy 464 472 cd /opt/nutchez/ 465 473 su nutchuser -c "tar -cvzf NutchezForClientOf_$MasterIP_Address.tar.gz nutch"
Note: See TracChangeset
for help on using the changeset viewer.