Changeset 219 for nutchez-0.2/src/shell
- Timestamp:
- Jun 24, 2010, 3:23:10 PM (15 years ago)
- Location:
- nutchez-0.2/src/shell
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
nutchez-0.2/src/shell/client_remove.sh
r214 r219 10 10 11 11 12 source ./lang_link12 source /home/nutchuser/nutchez/system/lang_link 13 13 # 需要 master_install 設定的參數區 14 14 # Master IP here -
nutchez-0.2/src/shell/install
r218 r219 51 51 52 52 mkdir /var/nutchez 53 # 建立 nutch 與 tomcat 的 logs 資料夾 54 mkdir /var/nutchez/tomcat-logs 55 ln -sf /var/nutchez/tomcat-logs /opt/nutchez/tomcat/logs 56 mkdir /var/nutchez/logs 57 ln -sf /var/nutchez/logs /opt/nutchez/nutch/logs 58 53 59 chown -R nutchuser:nutchuser /opt/nutchez 54 60 chown -R nutchuser:nutchuser /var/nutchez 61 62 # 系統路徑鍊結 63 ln -sf /home/nutchuser/nutchez/system/nutchez /usr/local/sbin/nutchez 55 64 56 65 make_client_install -
nutchez-0.2/src/shell/install_func.sh
r218 r219 1 1 #!/bin/bash 2 source $Work_Path/lang_link2 #source $Work_Path/lang_link 3 3 4 4 # shell檔及壓縮檔在同一目錄中 … … 85 85 function unzip_nV2_pack(){ 86 86 local pac_name=nutchez-0.2pack-current.tar.gz 87 local svn_ver=218 87 88 if [ ! -d "./package" ];then 88 89 mkdir ./package 89 90 fi 90 91 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" 92 wget "http://trac.nchc.org.tw/cloud/export/$svn_ver/nutchez-0.2/src/package/$pac_name"; 93 if [ $? -eq 0 ];then 94 mv $pac_name ./package; 95 echo "movied"; 96 96 else 97 show_info "$pac_name not found, installation was not finished!" 98 exit 8 97 show_info "$pac_name not found, installation was not finished!"; 98 exit 8; 99 99 fi 100 100 fi 101 #tar -zxvf ./package/$pac_name -C /opt/101 tar -zxvf ./package/$pac_name -C /opt/ 102 102 } 103 103 -
nutchez-0.2/src/shell/master_remove.sh
r214 r219 9 9 # 10 10 11 source ./lang_link11 source /home/nutchuser/nutchez/system/lang_link 12 12 13 13 ########## echo function ########## … … 56 56 # 移除檔案及資料夾 57 57 function remove_folders () { 58 rm /usr/local/sbin/nutchez 58 59 show_info "$MR_remove_folders_echo_1" # "正在刪除安裝時所建立的檔案及資料夾..." 59 60 rm -rf /opt/nutchez -
nutchez-0.2/src/shell/nutchez
r210 r219 18 18 Tomcat_HOME="/opt/nutchez/tomcat" 19 19 NutchEZ_HOME="/home/nutchuser/nutchez" 20 Work_Path="./" 21 Work_Path_J=0 22 23 # Work Path setup 24 echo $0 | grep '/' || Work_Path_J=1 25 if [ "$Work_Path_J" == "0" ]; then 26 Work_Path=$(echo $0 | sed 's/nutchez//') 27 fi 20 Work_Path= 21 22 #Work_Path="./" 23 #Work_Path_J=0 24 ## Work Path setup ## 25 #echo $0 | grep '/' || Work_Path_J=1 26 #if [ "$Work_Path_J" == "0" ]; then 27 # Work_Path=$(echo $0 | sed 's/nutchez//') 28 #fi 28 29 29 30 # [Env Declaration] # … … 56 57 57 58 echo -e "$pre_check_echo_1" 58 ./duplicate_del "${NutchEZ_HOME}/system/nutch_nodes"59 su root -c " ./duplicate_del /etc/hosts && ./add_hosts ${NutchEZ_HOME}/system/nutch_nodes /etc/hosts"59 $Work_Path/duplicate_del "${NutchEZ_HOME}/system/nutch_nodes" 60 su root -c "$Work_Path/duplicate_del /etc/hosts && $Work_Path/add_hosts ${NutchEZ_HOME}/system/nutch_nodes /etc/hosts" 60 61 # 若密碼輸入失敗則跳出 61 62 if [ $? == "1" ]; then … … 69 70 70 71 echo -e "$pre_check_echo_1" 71 ./duplicate_del "${NutchEZ_HOME}/system/nutch_nodes"72 su root -c " ./duplicate_del /etc/hosts && ./add_hosts ${NutchEZ_HOME}/system/nutch_nodes /etc/hosts"72 $Work_Path/duplicate_del "${NutchEZ_HOME}/system/nutch_nodes" 73 su root -c "$Work_Path/duplicate_del /etc/hosts && $Work_Path/add_hosts ${NutchEZ_HOME}/system/nutch_nodes /etc/hosts" 73 74 # 若密碼輸入失敗則跳出 74 75 if [ $? == "1" ]; then
Note: See TracChangeset
for help on using the changeset viewer.