source: other-projects/nz-flag-design/trunk/INSTALL.sh@ 29787

Last change on this file since 29787 was 29787, checked in by davidb, 9 years ago

Changes to support storing on the server side of the HSV histogram calculations

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