Changeset 164 for nutchez-0.2/src/test/install
- Timestamp:
- Jun 8, 2010, 3:22:23 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
nutchez-0.2/src/test/install
r163 r164 10 10 # *.sh及nutchez-0.2-0531.tar.gz均在同一目錄下 11 11 12 function show_info () { 13 if [ $? -eq 0 ]; then 14 echo -e "\033[1;32;40m $1 \033[0m" 15 fi 16 } 12 17 13 18 main () { 14 19 check_info 15 echo "歡迎使用NutchEZ, 此安裝程序會為您新建一個nutchuser帳號"20 show_info "歡迎使用NutchEZ, 此安裝程序會為您新建一個nutchuser帳號並協助您設定密碼" 16 21 set_install_information 17 show_info18 22 read -p "Please confirm your install infomation: 1.Yes 2.No " confirm 19 23 if [ $confirm -eq 1 ]; then … … 39 43 start_up_tomcat 40 44 # 安裝流程結束,並進入網頁管理頁面設定爬網網址...等 41 echo "Install Successfully!!"42 echo "Visit http://$MasterIP_Address:8080"45 show_info "Install Successfully!!" 46 show_info "Visit http://$MasterIP_Address:8080" 43 47 client_install_command 44 48 elif [ $confirm -eq 2 ]; then … … 47 51 } 48 52 49 # todo: 處理/etc/hosts50 # 多張網卡時的bug51 53 main
Note: See TracChangeset
for help on using the changeset viewer.