Ignore:
Timestamp:
Jun 8, 2010, 3:22:23 PM (14 years ago)
Author:
shunfa
Message:
  1. 解決/etc/hosts問題
  2. 新增function: debug_info(), show_info()
  3. 目前測試尚無其他問題(ubuntu9.04@VritualBox?)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • nutchez-0.2/src/test/install

    r163 r164  
    1010# *.sh及nutchez-0.2-0531.tar.gz均在同一目錄下
    1111
     12function show_info () {
     13  if [ $? -eq 0 ]; then
     14    echo -e "\033[1;32;40m $1 \033[0m"
     15  fi
     16}
    1217
    1318main () {
    1419  check_info
    15   echo "歡迎使用NutchEZ, 此安裝程序會為您新建一個nutchuser帳號"
     20  show_info "歡迎使用NutchEZ, 此安裝程序會為您新建一個nutchuser帳號並協助您設定密碼"
    1621  set_install_information
    17   show_info
    1822  read -p "Please confirm your install infomation: 1.Yes 2.No  " confirm
    1923  if [ $confirm -eq 1 ]; then
     
    3943    start_up_tomcat   
    4044    # 安裝流程結束,並進入網頁管理頁面設定爬網網址...等 
    41     echo "Install Successfully!!"
    42     echo "Visit http://$MasterIP_Address:8080"
     45    show_info "Install Successfully!!"
     46    show_info "Visit http://$MasterIP_Address:8080"
    4347    client_install_command
    4448  elif [ $confirm -eq 2 ]; then
     
    4751}
    4852
    49 # todo: 處理/etc/hosts
    50 # 多張網卡時的bug
    5153main
Note: See TracChangeset for help on using the changeset viewer.