Last change
on this file since 29740 was 29614, checked in by davidb, 9 years ago |
Extra check that helps indicate if UNZIP.sh needs to be run
|
-
Property svn:executable
set to
*
|
File size:
1.2 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | if [ ! -d main-form/images ] ; then
|
---|
4 | echo "Error: Unable to find 'main-form/images'. Have you run UNZIP.sh?" >2
|
---|
5 | exit
|
---|
6 | fi
|
---|
7 |
|
---|
8 | config_file="nz-flag-design.xml"
|
---|
9 |
|
---|
10 | echo ""
|
---|
11 | echo "****"
|
---|
12 | echo "* 1. Making 'render-3d/images/' world-writable to ensure web server can write to it"
|
---|
13 | echo "* => chmod a+rwx render-3d/images"
|
---|
14 | echo "* => chmod a+rw render-3d/images/*.png"
|
---|
15 | echo "****"
|
---|
16 | chmod a+rwx render-3d/images/
|
---|
17 | chmod a+rw render-3d/images/*.png
|
---|
18 |
|
---|
19 | echo "****"
|
---|
20 | echo "* 2. Creating Tomcat config file: $config_file"
|
---|
21 | echo "****"
|
---|
22 |
|
---|
23 |
|
---|
24 | echo "<Context path=\"/nz-flag-design\"" > "$config_file"
|
---|
25 | echo " useHttpOnly=\"false\"" >> "$config_file"
|
---|
26 | echo " docBase=\""`pwd`"\"" >> "$config_file"
|
---|
27 | echo " debug=\"1\" reloadable=\"true\"" >> "$config_file"
|
---|
28 | echo " allowLinking=\"true\">" >> "$config_file"
|
---|
29 | echo " <Manager pathname=\"SESSIONS.ser\" />" >> "$config_file"
|
---|
30 | echo "</Context>" >> "$config_file"
|
---|
31 |
|
---|
32 | #echo ""
|
---|
33 | echo "+++ ... Done"
|
---|
34 | #echo ""
|
---|
35 |
|
---|
36 | echo "****"
|
---|
37 | echo "* 3. Now copy:"
|
---|
38 | echo "* $config_file"
|
---|
39 | echo "* to:"
|
---|
40 | echo "* <tomcat-home>/conf/Catalina/localhost/$config_file"
|
---|
41 | echo "****"
|
---|
42 |
|
---|
43 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.