Ignore:
Timestamp:
Jun 21, 2010, 9:49:42 AM (14 years ago)
Author:
shunfa
Message:
  1. 修改master_install source 語言鏈結
  2. 修改移除時, 還原/etc/hosts至安裝NutchEZ前的版本
  3. 修改中文語言檔對應的變數
File:
1 edited

Legend:

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

    r206 r213  
    1414# Source functions
    1515source $Work_Path/install_func.sh
    16 source $Work_Path/install_lang.zh
     16source $Work_Path/lang_link
    1717### real code #####
    1818
     
    2828main () {
    2929  check_info
    30   show_info "$main_echo_1"
     30  show_info "$MI_main_echo_1"
    3131# show_info "歡迎使用NutchEZ, 此安裝程序會為您新建一個nutchuser帳號並協助您設定密碼"
    3232  set_install_information
    3333  show_master_info
    34   read -p "$main_echo_2" confirm
     34  read -p "$MI_main_echo_2" confirm
    3535# read -p "Please confirm your install infomation: 1.Yes 2.No  " confirm
    3636  if [ $confirm -eq 1 ]; then
     
    3939    # 解壓縮
    4040    tar -zxvf nutchezV2-current.tar.gz -C /opt/
    41    
     41
     42    su nutchuser -c "mkdir /home/nutchuser/nutchez"
     43    su nutchuser -c "mkdir /home/nutchuser/nutchez/urls"
     44    su nutchuser -c "touch /home/nutchuser/nutchez/urls/urls.txt"
     45    su nutchuser -c "mkdir /home/nutchuser/nutchez/search"
     46    su nutchuser -c "mkdir /home/nutchuser/nutchez/source"
     47    su nutchuser -c "mkdir /home/nutchuser/nutchez/system"   
     48
    4249    Install_Nutch
    4350
     
    4552    chown -R nutchuser:nutchuser /opt/nutchez
    4653    chown -R nutchuser:nutchuser /var/nutchez
    47     su nutchuser -c "mkdir /home/nutchuser/nutchez"
    48     su nutchuser -c "mkdir /home/nutchuser/nutchez/urls"
    49     su nutchuser -c "touch /home/nutchuser/nutchez/urls/urls.txt"
    50     su nutchuser -c "mkdir /home/nutchuser/nutchez/search"
    51     su nutchuser -c "mkdir /home/nutchuser/nutchez/source"
    52     su nutchuser -c "mkdir /home/nutchuser/nutchez/system"
    5354
    5455    make_client_install
     
    5859    start_up_tomcat   
    5960    # 安裝流程結束,並進入網頁管理頁面設定爬網網址...等 
    60     show_info "$main_echo_3"
     61    show_info "$MI_main_echo_3"
    6162#   show_info "Install Successfully!!"
    62     show_info "$main_echo_4"
     63    show_info "$MI_main_echo_4"
    6364#   show_info "Visit http://$MasterIP_Address:8080"
    6465    client_install_commands
Note: See TracChangeset for help on using the changeset viewer.