Last change
on this file since 29790 was 29790, checked in by davidb, 9 years ago |
Fixed typo in script
|
-
Property svn:executable
set to
*
|
File size:
1.5 KB
|
Rev | Line | |
---|
[29573] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
[29614] | 3 | if [ ! -d main-form/images ] ; then
|
---|
[29759] | 4 | echo "Error: Unable to find 'main-form/images'. Have you run UNZIP.sh?" 1>&2
|
---|
[29614] | 5 | exit
|
---|
| 6 | fi
|
---|
| 7 |
|
---|
[29573] | 8 | config_file="nz-flag-design.xml"
|
---|
| 9 |
|
---|
| 10 | echo ""
|
---|
| 11 | echo "****"
|
---|
[29609] | 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"
|
---|
[29758] | 14 | #echo "* => chmod a+rw render-3d/images/*.png"
|
---|
[29573] | 15 | echo "****"
|
---|
[29609] | 16 | chmod a+rwx render-3d/images/
|
---|
[29758] | 17 | #chmod a+rw render-3d/images/*.png
|
---|
[29573] | 18 |
|
---|
[29785] | 19 | echo ""
|
---|
| 20 | echo "****"
|
---|
| 21 | echo "* 2. Making 'similarity-2d' world-writable so web server can save JSON data there"
|
---|
| 22 | echo "* => chmod a+rwx similarity-2d"
|
---|
[29787] | 23 | echo "* => chmod a+rwx similarity-2d/json-data"
|
---|
[29785] | 24 | echo "****"
|
---|
| 25 | chmod a+rwx similarity-2d
|
---|
[29787] | 26 | chmod a+rwx similarity-2d/json-data
|
---|
[29758] | 27 |
|
---|
[29573] | 28 | echo "****"
|
---|
[29785] | 29 | echo "* 3. Copying local extension files to SVG-Edit folder"
|
---|
[29573] | 30 | echo "****"
|
---|
[29790] | 31 | /bin/cp -r main-form/svg-edit-local/* main-form/svg-edit-trunk/editor/.
|
---|
[29573] | 32 |
|
---|
| 33 |
|
---|
[29609] | 34 | echo "<Context path=\"/nz-flag-design\"" > "$config_file"
|
---|
| 35 | echo " useHttpOnly=\"false\"" >> "$config_file"
|
---|
| 36 | echo " docBase=\""`pwd`"\"" >> "$config_file"
|
---|
| 37 | echo " debug=\"1\" reloadable=\"true\"" >> "$config_file"
|
---|
| 38 | echo " allowLinking=\"true\">" >> "$config_file"
|
---|
| 39 | echo " <Manager pathname=\"SESSIONS.ser\" />" >> "$config_file"
|
---|
| 40 | echo "</Context>" >> "$config_file"
|
---|
[29573] | 41 |
|
---|
| 42 | #echo ""
|
---|
[29609] | 43 | echo "+++ ... Done"
|
---|
[29573] | 44 | #echo ""
|
---|
| 45 |
|
---|
| 46 | echo "****"
|
---|
[29785] | 47 | echo "* 4. Now copy:"
|
---|
[29573] | 48 | echo "* $config_file"
|
---|
| 49 | echo "* to:"
|
---|
| 50 | echo "* <tomcat-home>/conf/Catalina/localhost/$config_file"
|
---|
| 51 | echo "****"
|
---|
| 52 |
|
---|
| 53 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.