-
Notifications
You must be signed in to change notification settings - Fork 104
/
setup.sh
56 lines (47 loc) · 1.67 KB
/
setup.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
#!/bin/bash
echo ------------------------------
echo Stopping Cockpit JBoss server
echo Press y to confirm stopping
echo ------------------------------
./kill.sh
echo delete old json jar
rm -v /tmp/lib/third_party/struts/json-lib-2.1.jar
echo -------------------------------------------------------
echo Creating development distribution environment for
echo TC Direct System application
echo -------------------------------------------------------
mkdir -pv /home/direct/direct
cd /home/direct/direct
cp -rv /tmp/conf .
cp -rv /tmp/docs .
cp -rv /tmp/lib .
cp -rv /tmp/src .
cp /tmp/*.properties .
cp /tmp/*.xml .
cp /tmp/*.version .
echo ----------------------------------------
echo Copying static resources to Apache HTTP
echo server for hosting
echo ----------------------------------------
mkdir -pv /mnt/apache/tcdocs/images
mkdir -pv /mnt/apache/tcdocs/css
mkdir -pv /mnt/apache/tcdocs/scripts
cp -Rv /home/direct/direct/src/web/images/* /mnt/apache/tcdocs/images
cp -Rv /home/direct/direct/src/web/css/* /mnt/apache/tcdocs/css
cp -Rv /home/direct/direct/src/web/scripts/* /mnt/apache/tcdocs/scripts
echo -----------------------------------------------
echo Deploying Security EAR application
echo -----------------------------------------------
cd /home/direct/direct
#security.ear is deployed already on vm, skip this step
#ant deploy-security
echo -----------------------------------------------
echo Building and deploying Cockpit web application
echo -----------------------------------------------
cd /home/direct/direct
ant deploy
echo ------------------------------
echo Starting Cockpit JBoss server
echo ------------------------------
cd /home/direct/jboss-4.2.3.GA/bin
./start.sh