Changeset 231


Ignore:
Timestamp:
Jun 28, 2010, 11:40:49 AM (14 years ago)
Author:
waue
Message:

修改client 安裝時會先載入預設語言,並檢查是否為root
master_remove.sh 則是改進 userdel 回報user nutchuser 目前登入不改刪除的錯誤

Location:
nutchez-0.2/src/shell
Files:
3 edited

Legend:

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

    r224 r231  
    1111# 需要 master_install 設定的參數區
    1212# Master IP here
    13 Master_IP_Address="input.your.master.ip_address"
     13Master_IP_Address=140.110.138.192
    1414# Master Hostname here
    15 Master_Hostname="input_your_master_hostname"
     15Master_Hostname=u1004
    1616# 此檔自己用的參數區
    1717Linux_Distribution="";
     
    4040source $Work_Path/client_install_func.sh;
    4141
     42# 載入系統預設的語言
     43load_default_lang
     44# 檢查執行這個程式的是否為root權限
     45
     46check_root
     47read -p "continue.."
     48
    4249# Language Choice
    4350choose_lang
     
    5764
    5865# 檢查執行這個程式的是否為root權限
    59 check_root
    60 read -p "continue.."
     66#check_root
     67#read -p "continue.."
    6168
    6269# 查出此主機的作業系統,以及版本
  • nutchez-0.2/src/shell/client_install_func.sh

    r213 r231  
    2020}
    2121
    22 
    23 # choose Language
    24 function choose_lang(){
     22function load_default_lang(){
    2523
    2624lang=$(locale | grep 'LANG=' | cut -d "=" -f2)
     
    2927. $Work_Path/lang/lang_en_US_client_install
    3028# if locale is zh then source chinese
     29
    3130echo $lang | grep 'zh' >> /dev/null && source $Work_Path/lang/lang_zh_TW_client_install
     31}
     32
     33# choose Language
     34function 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
    3242
    3343# Ask language
  • nutchez-0.2/src/shell/master_remove.sh

    r230 r231  
    9595function user_delete () {
    9696  show_info "$MR_user_delete_echo_1" # "正在刪除nutchuser使用者..."
    97   userdel -r nutchuser
     97  userdel -rf nutchuser
    9898  show_info "$MR_user_delete_echo_2" # "使用者nutchuser已刪除"
    9999}
Note: See TracChangeset for help on using the changeset viewer.