Changeset 218


Ignore:
Timestamp:
Jun 24, 2010, 11:30:43 AM (15 years ago)
Author:
waue
Message:

更改 nutchez-0.2pack 的版本

Location:
nutchez-0.2
Files:
2 added
1 deleted
2 edited

Legend:

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

    r213 r218  
    3838    make_ssh_key
    3939    # 解壓縮
    40     tar -zxvf nutchezV2-current.tar.gz -C /opt/
     40    # tar -zxvf nutchezV2-current.tar.gz -C /opt/
     41    unzip_nV2_pack
    4142
    4243    su nutchuser -c "mkdir /home/nutchuser/nutchez"
  • nutchez-0.2/src/shell/install_func.sh

    r214 r218  
    11#!/bin/bash
    22source $Work_Path/lang_link
    3 ####### garbage here #############
    4 function mainFunction ( )
    5 {
    6 echo "$Good"
    7 }
    8 function braBraBra ( )
    9 {
    10 echo "$Bra_Bra_Bra"
    11 }
    12 ####### garbage end ###############
    133
    144# shell檔及壓縮檔在同一目錄中
    15 
    165####### 環境變數section###########
    176User_HOME=/home/nutchuser/nutchez
     
    2514net_MacAddr=`/sbin/ifconfig eth0 | grep 'HW' | sed 's/^.*HWaddr //g'`
    2615
    27 ######function section section#######
     16######function section#######
    2817
    2918##########  echo function  ##########
     
    9281    show_info "$MI_install_pack_if_2"
    9382  fi
     83}
     84
     85function unzip_nV2_pack(){
     86  local pac_name=nutchez-0.2pack-current.tar.gz
     87  if [ ! -d "./package" ];then
     88    mkdir ./package
     89  fi
     90  if [ ! -e "./package/$pac_name" ];then
     91  wget "http://trac.nchc.org.tw/cloud/export/217/nutchez-0.2/src/package/$pac_name"
     92  echo wget "http://trac.nchc.org.tw/cloud/export/217/nutchez-0.2/src/package/$pac_name"
     93    if [ -z $? ];then
     94  mv $pac_name ./package
     95  echo "movied"
     96    else
     97  show_info "$pac_name not found, installation was not finished!"
     98  exit 8
     99    fi
     100  fi
     101  #tar -zxvf ./package/$pac_name -C /opt/
    94102}
    95103
Note: See TracChangeset for help on using the changeset viewer.