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

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

Tidier way of copying install files, without .svn file write permissions errors being generated

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