-
Notifications
You must be signed in to change notification settings - Fork 47
/
install.sh
58 lines (44 loc) · 938 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
#configuration options
if [[ "$LUCEE_VERSION" == "" ]];then
export LUCEE_VERSION="5.3.7.48"
fi
#if [[ "$LUCEE_LIGHT" == "" ]];then
#export LUCEE_JAR_SHA256=""
#fi
if [[ "$JVM_MAX_HEAP_SIZE" == "" ]];then
export JVM_MAX_HEAP_SIZE="512m"
fi
#root permission check
if [ "$(whoami)" != "root" ]; then
echo "Sorry, you need to run this script using sudo or as root."
exit 1
fi
function separator {
echo " "
echo "------------------------------------------------"
echo " "
}
#make sure scripts are runnable
chown -R root scripts/*.sh
chmod u+x scripts/*.sh
#update ubuntu software
./scripts/100-ubuntu-update.sh
separator
#download lucee
./scripts/200-lucee.sh
separator
#install tomcat
./scripts/300-tomcat.sh
separator
#install jvm
./scripts/400-jvm.sh
separator
#install nginx
./scripts/500-nginx.sh
separator
#configure lucee
./scripts/600-config.sh
separator
echo "Setup Complete"
separator