forked from 527515025/springBoot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
37 lines (27 loc) · 822 Bytes
/
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
#ident "%W%"
#!/bin/sh -x
###############################
## used to install package
###############################
#the path of this script when running
if cd "`dirname $0`"; then
export SCRIPT_PATH=${PWD}
echo "[INFO] export SCRIPT_PATH=${SCRIPT_PATH}"
cd "${OLDPWD}" || exit 1
else
exit 1
fi
#call setenv
. ${SCRIPT_PATH}/setenv.sh
APPVERSION=`date +%Y%m%d-%H%M%S`
LOG=/tmp/install-${prop_package}-${APPVERSION}.log
mylog "[INFO] Begin install.sh"
#check it is a single node installation or a cluster installation
if [ "${prop_isCluster}" = "true" ]; then
mylog "[INFO] checked you are doing CLUSTER installation"
myexecute "${SCRIPT_PATH}/install-cluster.sh"
else
mylog "[INFO] checked you are doing SINGLE NODE installation"
myexecute "${SCRIPT_PATH}/install-single.sh"
fi
exit 0