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

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

Fixed missing 'done' in foreach

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