Changeset 218 for nutchez-0.2/src/shell
- Timestamp:
- Jun 24, 2010, 11:30:43 AM (15 years ago)
- Location:
- nutchez-0.2/src/shell
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
nutchez-0.2/src/shell/install
r213 r218 38 38 make_ssh_key 39 39 # 解壓縮 40 tar -zxvf nutchezV2-current.tar.gz -C /opt/ 40 # tar -zxvf nutchezV2-current.tar.gz -C /opt/ 41 unzip_nV2_pack 41 42 42 43 su nutchuser -c "mkdir /home/nutchuser/nutchez" -
nutchez-0.2/src/shell/install_func.sh
r214 r218 1 1 #!/bin/bash 2 2 source $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 ###############13 3 14 4 # shell檔及壓縮檔在同一目錄中 15 16 5 ####### 環境變數section########### 17 6 User_HOME=/home/nutchuser/nutchez … … 25 14 net_MacAddr=`/sbin/ifconfig eth0 | grep 'HW' | sed 's/^.*HWaddr //g'` 26 15 27 ######function section section#######16 ######function section####### 28 17 29 18 ########## echo function ########## … … 92 81 show_info "$MI_install_pack_if_2" 93 82 fi 83 } 84 85 function 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/ 94 102 } 95 103
Note: See TracChangeset
for help on using the changeset viewer.