Changeset 231 for nutchez-0.2/src/shell
- Timestamp:
- Jun 28, 2010, 11:40:49 AM (15 years ago)
- Location:
- nutchez-0.2/src/shell
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
nutchez-0.2/src/shell/client_install
r224 r231 11 11 # 需要 master_install 設定的參數區 12 12 # Master IP here 13 Master_IP_Address= "input.your.master.ip_address"13 Master_IP_Address=140.110.138.192 14 14 # Master Hostname here 15 Master_Hostname= "input_your_master_hostname"15 Master_Hostname=u1004 16 16 # 此檔自己用的參數區 17 17 Linux_Distribution=""; … … 40 40 source $Work_Path/client_install_func.sh; 41 41 42 # 載入系統預設的語言 43 load_default_lang 44 # 檢查執行這個程式的是否為root權限 45 46 check_root 47 read -p "continue.." 48 42 49 # Language Choice 43 50 choose_lang … … 57 64 58 65 # 檢查執行這個程式的是否為root權限 59 check_root60 read -p "continue.."66 #check_root 67 #read -p "continue.." 61 68 62 69 # 查出此主機的作業系統,以及版本 -
nutchez-0.2/src/shell/client_install_func.sh
r213 r231 20 20 } 21 21 22 23 # choose Language 24 function choose_lang(){ 22 function load_default_lang(){ 25 23 26 24 lang=$(locale | grep 'LANG=' | cut -d "=" -f2) … … 29 27 . $Work_Path/lang/lang_en_US_client_install 30 28 # if locale is zh then source chinese 29 31 30 echo $lang | grep 'zh' >> /dev/null && source $Work_Path/lang/lang_zh_TW_client_install 31 } 32 33 # choose Language 34 function choose_lang(){ 35 36 #lang=$(locale | grep 'LANG=' | cut -d "=" -f2) 37 38 # Default: source english 39 #. $Work_Path/lang/lang_en_US_client_install 40 # if locale is zh then source chinese 41 #echo $lang | grep 'zh' >> /dev/null && source $Work_Path/lang/lang_zh_TW_client_install 32 42 33 43 # Ask language -
nutchez-0.2/src/shell/master_remove.sh
r230 r231 95 95 function user_delete () { 96 96 show_info "$MR_user_delete_echo_1" # "正在刪除nutchuser使用者..." 97 userdel -r nutchuser97 userdel -rf nutchuser 98 98 show_info "$MR_user_delete_echo_2" # "使用者nutchuser已刪除" 99 99 }
Note: See TracChangeset
for help on using the changeset viewer.