-
Notifications
You must be signed in to change notification settings - Fork 48
/
install.sh
executable file
·155 lines (119 loc) · 3.25 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
#!/bin/bash
export SYSTEMD_PAGER=
DEVDIR="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd)"
. ./install/install_functions.sh
export no_proxy=localhost,$no_proxy
INTERACTIVE='yes'
echo "==================== SCOT 3.5 Installer ======================="
echo "DEVDIR is $DEVDIR"
if root_check
then
echo "Running as root: Yes"
else
echo "Running as root: NO (can not proceed)"
exit 2
fi
if get_http_proxy
then
echo "http_proxy : $PROXY"
else
echo "http_proxy : not set!"
fi
if get_https_proxy
then
echo "https_proxy : $SPROXY"
else
echo "https_proxy : not set!"
fi
check_no_proxy
if get_script_src_dir
then
echo "Install Src Dir: $DIR"
else
echo "Install Src Dir: unknown (can not proceed)"
exit 2
fi
if determine_distro
then
echo "Linux distro : $DISTRO"
else
echo "Linux distro :failed getting distro (can not proceed)"
exit 2
fi
if get_os_name
then
echo "Operating Sys : $OS"
else
echo "Operating Sys : unknown (can not proceed)"
exit 2
fi
if get_os_version
then
echo "OS Version : $OSVERSION"
else
echo "OS Version : unknown (can not proceed)"
exit 2
fi
. ./install/commandline.sh
default_variables
process_commandline $@
show_variables
echo "____ INSTALL MODE $INSTMODE"
if [[ $INSTMODE != "SCOTONLY" ]]; then
echo "=========== installing packages ============="
. ./install/install_packages.sh
install_packages
echo "=========== installing Mongodb ============="
. ./install/install_mongodb.sh
install_mongodb
echo "=========== installing JAVA ============="
. ./install/install_java.sh
install_java
echo "=========== installing APACHE ============="
. ./install/install_apache.sh
install_apache
echo "=========== installing ActiveMQ ============="
. ./install/install_activemq.sh
install_activemq
echo "=========== installing ElasticSearch ============="
. ./install/install_elasticsearch.sh
install_elasticsearch
echo "=========== installing PERL modules ============="
. ./install/install_perl.sh
install_perl
fi
echo "=========== installing SCOT ============="
. ./install/install_scot.sh
install_scot
start_services
if [[ "$AUTHMODE" == "Local" ]]; then
echo "!!!!"
echo "!!!! AUTHMODE is set to LOCAL. Use the admin username and password"
echo "!!!! to initially access SCOT. Please see only documentation for "
echo "!!!! direction on how to create users/password or to switch "
echo "!!!! authentication options."
echo "!!!!"
fi
echo ""
echo "@@"
echo "@@ SCOT online documentaton is available at "
echo "@@ https://localhost/docs/index.html"
echo "@@"
echo ""
echo "----"
echo "----"
echo "---- Install completed"
echo "----"
echo "----"
date > /opt/scot/last_install
. ./install/status.sh
echo "========= "
echo "========= Please let us know you are using SCOT"
echo "========= it helps us convince our management to continue work on it."
echo "========= "
echo "========= ways to communicate with us:"
echo "========= follow us on twitter: @scotincresp "
echo "========= subscribe to : majordomo@sandia.gov "
echo "========= with body subscribe scot-users"
echo "========= email the dev team : scot-dev@sandia.gov "
echo "========= "