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

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
3config_file="nz-flag-design.xml"
4
5echo ""
6echo "****"
7echo "* 1. Making 'render-3d/images/' world-writable to ensure web server can write to it"
8echo "* => chmod a+rwx render-3d/images"
9echo "* => chmod a+rw render-3d/images/*.png"
10echo "****"
11chmod a+rwx render-3d/images/
12chmod a+rw render-3d/images/*.png
13
14echo "****"
15echo "* 2. Creating Tomcat config file: $config_file"
16echo "****"
17
18
19echo "<Context path=\"/nz-flag-design\"" > "$config_file"
20echo " useHttpOnly=\"false\"" >> "$config_file"
21echo " docBase=\""`pwd`"\"" >> "$config_file"
22echo " debug=\"1\" reloadable=\"true\"" >> "$config_file"
23echo " allowLinking=\"true\">" >> "$config_file"
24echo " <Manager pathname=\"SESSIONS.ser\" />" >> "$config_file"
25echo "</Context>" >> "$config_file"
26
27#echo ""
28echo "+++ ... Done"
29#echo ""
30
31echo "****"
32echo "* 3. Now copy:"
33echo "* $config_file"
34echo "* to:"
35echo "* <tomcat-home>/conf/Catalina/localhost/$config_file"
36echo "****"
37
38
Note: See TracBrowser for help on using the repository browser.