Changeset 169
- Timestamp:
- Jun 9, 2010, 10:48:15 AM (15 years ago)
- Location:
- nutchez-0.2/src/test
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
nutchez-0.2/src/test/client_install
r167 r169 14 14 # 需要 master_install 設定的參數區 15 15 # Master IP here 16 Master_IP_Address= 192.168.56.10116 Master_IP_Address=input.your.master.ip_address 17 17 # Master Hostname here 18 Master_Hostname= shunfa-VBox118 Master_Hostname=input_your_master_hostname 19 19 # 此檔自己用的參數區 20 20 Linux_Distribution=""; 21 21 Linux_Version=""; 22 22 Nutchuser_Passwd="xxxxxxxxxx"; 23 24 ###print function### 25 function debug_info () { 26 if [ $? -eq 0 ]; then 27 echo -e "\033[1;35;40m info - $1 \033[0m" 28 fi 29 } 30 31 function show_info () { 32 if [ $? -eq 0 ]; then 33 echo -e "\033[1;32;40m $1 \033[0m" 34 fi 35 } 23 36 24 37 # 參數詢問 -
nutchez-0.2/src/test/client_install_func.sh
r167 r169 38 38 debug_info "check systemInfo" 39 39 show_info "Your system information are:" 40 Linux_Distribution=$(lsb_release -a 2> /dev/null | grep "Distributor ID:" | awk '{print $3}')41 Linux_Version=$(lsb_release -a 2> /dev/null | grep "Release" | awk '{print $2}')40 Linux_Distribution=$(lsb_release -a 2> /dev/null | grep "Distributor ID:" | awk '{print $3}') 41 Linux_Version=$(lsb_release -a 2> /dev/null | grep "Release" | awk '{print $2}') 42 42 show_info "$Linux_Distribution , $Linux_Version" 43 43 } … … 225 225 expect eof" 226 226 else 227 echo "Create nutchuser and change password."227 show_info "Create nutchuser and change password." 228 228 useradd -m nutchuser -s /bin/bash 229 229 expect -c "spawn passwd nutchuser -
nutchez-0.2/src/test/install_func.sh
r166 r169 256 256 show_info "mkdir nutchez_client_install" 257 257 show_info "cd nutchez_client_install" 258 show_info "scp nutchuser@$Master_IP_Address:/home/nutchuser/nutchez/source/* ." 258 show_info "scp nutchuser@$MasterIP_Address:/home/nutchuser/nutchez/source/* ." 259 show_info "sudo su" 259 260 show_info "./client_install" 260 261 }
Note: See TracChangeset
for help on using the changeset viewer.