Changes To Cookbook
Not logged in

Changes to "Cookbook" between 2011-01-21 11:59:06 and 2011-01-28 03:36:33

   139    139   
   140    140   With the following CGI script (I have named it <samp>p</samp> simply) it is possible to define a location where all the your repositories should be located (in this example: <samp>/home/repos/fossil</samp>). All the repositories are named according the scheme <samp><project name>.fsl</samp> for sake of this example.
   141    141   
   142    142   If this script is called alone (like e.g.: <samp>http://your.server.here/cgi-bin/p</samp>), it will list all repositories located under <samp>$REPOSROOT</samp>, <b>if</b> there <b>does not</b> exist a corresponding file <samp>.<project name></samp> (that mechanism is used to <i>hide</i> some repository in the listing).
   143    143   
   144    144   If the script is called like e.g. <samp>http://your.server.here/cgi-bin/p/<project name></samp>, then the corresponding repository will be selected to work with.
   145    145   
   146         -The lines 5 - 8 in the script below allow configuration for you needs. You have to chose, what fossil binary to use, what extension your repository databases have and where all your databases are located.
          146  +The lines 5 - 8 in the script below allow configuration for your needs. You must configure it for:  the fossil binary to use, the location of your databases, and the extension your repository databases have.
   147    147   
   148    148   <nowiki>
   149    149   <font face="monospace">
   150    150   <font color="#a52a2a">&nbsp;1 </font><font color="#0000ff">#!/bin/sh</font><br>
   151    151   <font color="#a52a2a">&nbsp;2 </font><br>
   152    152   <font color="#a52a2a">&nbsp;3 </font><font color="#0000ff">### Configuration section ###</font><br>
   153    153   <font color="#a52a2a">&nbsp;4 </font><br>