Last change
on this file since 122 was
122,
checked in by rock, 15 years ago
|
update 4 functions(check_root, check_systemInfo, check_nez_installed, check_sunJava)
|
-
Property svn:executable set to
*
|
File size:
1.5 KB
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | # Program: |
---|
3 | # Check root identity and change root to exectue client_install.sh |
---|
4 | # Author: |
---|
5 | # Waue, Shunfa, Rock {waue, shunfa, rock}@nchc.org.tw |
---|
6 | # History: |
---|
7 | # 2010/05/20 Rock First release |
---|
8 | |
---|
9 | |
---|
10 | # 設定 functions |
---|
11 | . ./client_install_func.sh |
---|
12 | |
---|
13 | # 需要master_install 設定的參數區 |
---|
14 | Master_IP_Address="a.a.a.a"; |
---|
15 | Nutchuser_Passwd="xxxxxxxx"; |
---|
16 | |
---|
17 | # 此檔自己用的參數區 |
---|
18 | Linux_Distribution=""; |
---|
19 | Linux_Version=""; |
---|
20 | |
---|
21 | # 功能邏輯區 |
---|
22 | |
---|
23 | |
---|
24 | # 程式邏輯區 |
---|
25 | |
---|
26 | # 檢查執行這個程式的是否為root權限 |
---|
27 | check_root |
---|
28 | read |
---|
29 | |
---|
30 | # 查出此主機的作業系統,以及版本,後面 read 在正式版後會拿掉 (用來trace 用) |
---|
31 | check_systemInfo |
---|
32 | read |
---|
33 | |
---|
34 | # 檢查之前是否有安裝NutchEz |
---|
35 | # 目前先檢查是否有/opt/nutchez 這個資料夾即可 |
---|
36 | check_nez_installed |
---|
37 | read |
---|
38 | |
---|
39 | # 檢查是否有安裝sun java ,並檢查是否為jdk 1.6 以上版本 |
---|
40 | check_sunJava |
---|
41 | read |
---|
42 | |
---|
43 | # 檢查是否有安裝openssh, openssh-server |
---|
44 | #check_ssh |
---|
45 | |
---|
46 | # 檢查是否有安裝cdialog |
---|
47 | #check_dialog |
---|
48 | |
---|
49 | # 檢查是否安裝 php 5.5 |
---|
50 | #check_php |
---|
51 | |
---|
52 | # scp nutchuser@master_ip:~ 把.ssh/目錄複製下來 |
---|
53 | # 當使用者輸入nutchuser 密碼時,將此密碼紀錄到Nutchuser_Passwd |
---|
54 | # 此步驟若無法連到 master 則跳出 |
---|
55 | #scp_master_nutchuser_sshkey |
---|
56 | |
---|
57 | # 新增nutchuser 帳號時用 Nutchuser_Passwd 當密碼 |
---|
58 | #creat_nutchuser_account |
---|
59 | |
---|
60 | # 用scp 複製 master 的設定與安裝資料 |
---|
61 | # 目前僅需做到能無礙的複製遠端的/opt/nutchez/到local的/opt/ |
---|
62 | #scp_packages |
---|
63 | |
---|
64 | # 安裝 |
---|
65 | #install_packages |
---|
66 | |
---|
Note: See
TracBrowser
for help on using the repository browser.