Last change
on this file since 29609 was 29609, checked in by davidb, 9 years ago |
Switch to using JESSIONID as part of the flagname, so everyone visiting the site gets to design their flag in private.
|
-
Property svn:executable
set to
*
|
File size:
1.0 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | config_file="nz-flag-design.xml"
|
---|
4 |
|
---|
5 | echo ""
|
---|
6 | echo "****"
|
---|
7 | echo "* 1. Making 'render-3d/images/' world-writable to ensure web server can write to it"
|
---|
8 | echo "* => chmod a+rwx render-3d/images"
|
---|
9 | echo "* => chmod a+rw render-3d/images/*.png"
|
---|
10 | echo "****"
|
---|
11 | chmod a+rwx render-3d/images/
|
---|
12 | chmod a+rw render-3d/images/*.png
|
---|
13 |
|
---|
14 | echo "****"
|
---|
15 | echo "* 2. Creating Tomcat config file: $config_file"
|
---|
16 | echo "****"
|
---|
17 |
|
---|
18 |
|
---|
19 | echo "<Context path=\"/nz-flag-design\"" > "$config_file"
|
---|
20 | echo " useHttpOnly=\"false\"" >> "$config_file"
|
---|
21 | echo " docBase=\""`pwd`"\"" >> "$config_file"
|
---|
22 | echo " debug=\"1\" reloadable=\"true\"" >> "$config_file"
|
---|
23 | echo " allowLinking=\"true\">" >> "$config_file"
|
---|
24 | echo " <Manager pathname=\"SESSIONS.ser\" />" >> "$config_file"
|
---|
25 | echo "</Context>" >> "$config_file"
|
---|
26 |
|
---|
27 | #echo ""
|
---|
28 | echo "+++ ... Done"
|
---|
29 | #echo ""
|
---|
30 |
|
---|
31 | echo "****"
|
---|
32 | echo "* 3. Now copy:"
|
---|
33 | echo "* $config_file"
|
---|
34 | echo "* to:"
|
---|
35 | echo "* <tomcat-home>/conf/Catalina/localhost/$config_file"
|
---|
36 | echo "****"
|
---|
37 |
|
---|
38 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.