forked from foundeo/ubuntu-nginx-lucee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
50 lines (38 loc) · 956 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
#!/bin/bash
#configuration options
export LUCEE_VERSION="5.1.0.34"
export JVM_MAX_HEAP_SIZE="512m"
#set these two variables if you want to use an oracle JVM, instead of openjdk
export JVM_FILE="server-jre-8u66-linux-x64.tar.gz"
export JVM_VERSION="1.8.0_66"
#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
echo "Setup Complete"
separator
echo "GO SET YOUR LUCEE PASSWORDS: http://localhost/lucee/admin/server.cfm"