Hex Artifact Content
Not logged in

Artifact 8e46971181ac2c7438e2614ae16ef6929dc777d8:

Wiki page [Cookbook] by michael on 2008-05-25 07:50:11.

0000: 44 20 32 30 30 38 2d 30 35 2d 32 35 54 30 37 3a  D 2008-05-25T07:
0010: 35 30 3a 31 31 0a 4c 20 43 6f 6f 6b 62 6f 6f 6b  50:11.L Cookbook
0020: 0a 55 20 6d 69 63 68 61 65 6c 0a 57 20 37 32 33  .U michael.W 723
0030: 34 0a 3c 68 31 3e 46 6f 73 73 69 6c 20 43 6f 6f  4.<h1>Fossil Coo
0040: 6b 62 6f 6f 6b 3c 2f 68 31 3e 0d 0a 54 68 65 20  kbook</h1>..The 
0050: 3c 63 69 74 65 3e 46 6f 73 73 69 6c 3c 2f 63 69  <cite>Fossil</ci
0060: 74 65 3e 20 43 6f 6f 6b 62 6f 6f 6b 20 69 73 20  te> Cookbook is 
0070: 61 20 63 6f 6c 6c 65 63 74 69 6f 6e 20 6f 66 20  a collection of 
0080: 74 61 73 6b 2d 6f 72 69 65 6e 74 65 64 20 69 6e  task-oriented in
0090: 73 74 72 75 63 74 69 6f 6e 73 20 66 6f 72 20 69  structions for i
00a0: 6e 74 65 72 6d 65 64 69 61 74 65 20 75 73 65 72  ntermediate user
00b0: 73 20 77 68 6f 20 77 69 73 68 20 74 6f 20 64 6f  s who wish to do
00c0: 20 6d 6f 72 65 20 74 68 61 6e 20 62 61 73 69 63   more than basic
00d0: 20 6f 70 65 72 61 74 69 6f 6e 73 20 77 69 74 68   operations with
00e0: 20 74 68 65 69 72 20 3c 63 69 74 65 3e 46 6f 73   their <cite>Fos
00f0: 73 69 6c 3c 2f 63 69 74 65 3e 20 72 65 70 6f 73  sil</cite> repos
0100: 69 74 6f 72 69 65 73 2e 20 20 54 68 65 20 5b 54  itories.  The [T
0110: 75 74 6f 72 69 61 6c 7c 74 75 74 6f 72 69 61 6c  utorial|tutorial
0120: 5d 20 69 73 20 61 20 6d 6f 72 65 20 73 75 69 74  ] is a more suit
0130: 61 62 6c 65 20 70 6c 61 63 65 20 66 6f 72 20 6e  able place for n
0140: 65 77 63 6f 6d 65 72 73 20 74 72 79 69 6e 67 20  ewcomers trying 
0150: 74 6f 20 6c 65 61 72 6e 20 74 68 65 20 62 61 73  to learn the bas
0160: 69 63 20 63 6f 6e 63 65 70 74 73 20 74 6f 20 67  ic concepts to g
0170: 6f 20 66 69 72 73 74 20 62 65 66 6f 72 65 20 74  o first before t
0180: 61 63 6b 6c 69 6e 67 20 74 68 65 73 65 20 72 65  ackling these re
0190: 63 69 70 65 73 2e 0d 0a 0d 0a 3c 68 32 3e 49 6e  cipes.....<h2>In
01a0: 64 65 78 3c 2f 68 32 3e 0d 0a 53 65 72 76 65 72  dex</h2>..Server
01b0: 20 72 65 63 69 70 65 73 3a 0d 0a 20 20 2a 20 20   recipes:..  *  
01c0: 3c 61 20 68 72 65 66 3d 22 23 43 47 49 22 3e 55  <a href="#CGI">U
01d0: 73 69 6e 67 20 3c 63 69 74 65 3e 46 6f 73 73 69  sing <cite>Fossi
01e0: 6c 3c 2f 63 69 74 65 3e 27 73 20 42 75 69 6c 74  l</cite>'s Built
01f0: 2d 49 6e 20 43 47 49 3c 2f 61 3e 0d 0a 0d 0a 3c  -In CGI</a>....<
0200: 68 32 3e 3c 61 20 6e 61 6d 65 3d 22 43 47 49 22  h2><a name="CGI"
0210: 3e 55 73 69 6e 67 20 3c 63 69 74 65 3e 46 6f 73  >Using <cite>Fos
0220: 73 69 6c 3c 2f 63 69 74 65 3e 27 73 20 42 75 69  sil</cite>'s Bui
0230: 6c 74 2d 49 6e 20 43 47 49 3c 2f 61 3e 3c 2f 68  lt-In CGI</a></h
0240: 32 3e 0d 0a 3c 68 33 3e 4d 6f 74 69 76 61 74 69  2>..<h3>Motivati
0250: 6f 6e 3c 2f 68 33 3e 0d 0a 20 20 2a 20 20 59 6f  on</h3>..  *  Yo
0260: 75 20 77 61 6e 74 20 74 6f 20 73 68 61 72 65 20  u want to share 
0270: 61 20 72 65 70 6f 73 69 74 6f 72 79 20 74 68 72  a repository thr
0280: 6f 75 67 68 20 79 6f 75 72 20 65 78 69 73 74 69  ough your existi
0290: 6e 67 20 77 65 62 20 69 6e 66 72 61 73 74 72 75  ng web infrastru
02a0: 63 74 75 72 65 2e 0d 0a 20 20 2a 20 20 59 6f 75  cture...  *  You
02b0: 20 77 61 6e 74 20 74 6f 20 73 68 61 72 65 20 6d   want to share m
02c0: 6f 72 65 20 74 68 61 6e 20 6f 6e 65 20 72 65 70  ore than one rep
02d0: 6f 73 69 74 6f 72 79 20 61 74 20 74 68 65 20 73  ository at the s
02e0: 61 6d 65 20 74 69 6d 65 2e 0d 0a 0d 0a 3c 68 33  ame time.....<h3
02f0: 3e 50 72 6f 62 6c 65 6d 3c 2f 68 33 3e 0d 0a 55  >Problem</h3>..U
0300: 6e 6c 69 6b 65 20 73 6f 6d 65 20 6f 74 68 65 72  nlike some other
0310: 20 64 69 73 74 72 69 62 75 74 65 64 20 53 43 4d   distributed SCM
0320: 73 2c 20 3c 63 69 74 65 3e 46 6f 73 73 69 6c 3c  s, <cite>Fossil<
0330: 2f 63 69 74 65 3e 20 63 61 6e 20 6f 6e 6c 79 20  /cite> can only 
0340: 63 6c 6f 6e 65 2c 20 70 75 73 68 2c 20 70 75 6c  clone, push, pul
0350: 6c 20 61 6e 64 20 61 6e 64 20 6f 74 68 65 72 77  l and and otherw
0360: 69 73 65 20 69 6e 74 65 72 61 63 74 20 74 68 72  ise interact thr
0370: 6f 75 67 68 20 72 65 70 6f 73 69 74 6f 72 69 65  ough repositorie
0380: 73 20 6f 76 65 72 20 48 54 54 50 2e 20 20 54 68  s over HTTP.  Th
0390: 69 73 20 63 61 6e 20 62 65 20 73 69 6d 70 6c 79  is can be simply
03a0: 20 61 6e 64 20 65 61 73 69 6c 79 20 6d 61 6e 61   and easily mana
03b0: 67 65 64 20 74 68 72 6f 75 67 68 20 75 73 65 20  ged through use 
03c0: 6f 66 20 74 68 65 20 3c 63 6f 64 65 3e 66 6f 73  of the <code>fos
03d0: 73 69 6c 20 73 65 72 76 65 72 3c 2f 63 6f 64 65  sil server</code
03e0: 3e 20 61 6e 64 2f 6f 72 20 3c 63 6f 64 65 3e 66  > and/or <code>f
03f0: 6f 73 73 69 6c 20 75 69 3c 2f 63 6f 64 65 3e 20  ossil ui</code> 
0400: 63 6f 6d 6d 61 6e 64 73 2c 20 6f 66 20 63 6f 75  commands, of cou
0410: 72 73 65 2c 20 62 75 74 20 74 68 69 73 20 69 73  rse, but this is
0420: 20 72 65 61 6c 6c 79 20 6f 6e 6c 79 20 61 64 65   really only ade
0430: 71 75 61 74 65 20 66 6f 72 20 61 64 2d 68 6f 63  quate for ad-hoc
0440: 20 72 65 70 6f 73 69 74 6f 72 79 20 73 68 61 72   repository shar
0450: 69 6e 67 2e 20 20 43 6f 6e 73 69 64 65 72 2c 20  ing.  Consider, 
0460: 66 6f 72 20 65 78 61 6d 70 6c 65 2c 20 73 68 61  for example, sha
0470: 72 69 6e 67 20 74 65 6e 20 72 65 70 6f 73 69 74  ring ten reposit
0480: 6f 72 69 65 73 2e 20 20 55 73 69 6e 67 20 74 68  ories.  Using th
0490: 65 20 62 75 69 6c 74 2d 69 6e 20 73 65 72 76 65  e built-in serve
04a0: 72 20 77 6f 75 6c 64 20 72 65 71 75 69 72 65 20  r would require 
04b0: 79 6f 75 20 74 6f 20 6f 70 65 6e 20 74 65 6e 20  you to open ten 
04c0: 70 6f 72 74 73 20 69 6e 20 79 6f 75 72 20 66 69  ports in your fi
04d0: 72 65 77 61 6c 6c 20 74 6f 20 70 65 72 6d 69 74  rewall to permit
04e0: 20 61 63 63 65 73 73 2e 20 20 41 6e 79 20 73 65   access.  Any se
04f0: 72 69 6f 75 73 20 73 68 61 72 69 6e 67 20 77 69  rious sharing wi
0500: 6c 6c 20 72 65 71 75 69 72 65 20 73 6f 6d 65 74  ll require somet
0510: 68 69 6e 67 20 6d 6f 72 65 20 72 6f 62 75 73 74  hing more robust
0520: 20 61 6e 64 20 70 65 72 6d 61 6e 65 6e 74 2e 0d   and permanent..
0530: 0a 0d 0a 3c 68 33 3e 53 6f 6c 75 74 69 6f 6e 3c  ...<h3>Solution<
0540: 2f 68 33 3e 0d 0a 3c 63 69 74 65 3e 46 6f 73 73  /h3>..<cite>Foss
0550: 69 6c 3c 2f 63 69 74 65 3e 20 73 75 70 70 6f 72  il</cite> suppor
0560: 74 73 20 74 68 72 65 65 20 64 69 66 66 65 72 65  ts three differe
0570: 6e 74 20 77 61 79 73 20 74 6f 20 73 68 61 72 65  nt ways to share
0580: 20 72 65 70 6f 73 69 74 6f 72 69 65 73 2e 20 20   repositories.  
0590: 46 6f 72 20 61 64 2d 68 6f 63 20 73 68 61 72 69  For ad-hoc shari
05a0: 6e 67 20 3c 63 6f 64 65 3e 66 6f 73 73 69 6c 20  ng <code>fossil 
05b0: 73 65 72 76 65 72 2f 75 69 3c 2f 63 6f 64 65 3e  server/ui</code>
05c0: 20 69 73 20 6d 6f 72 65 20 74 68 61 6e 20 61 64   is more than ad
05d0: 65 71 75 61 74 65 2e 20 20 46 6f 72 20 6d 6f 72  equate.  For mor
05e0: 65 20 72 6f 62 75 73 74 20 73 6f 6c 75 74 69 6f  e robust solutio
05f0: 6e 73 2c 20 68 6f 77 65 76 65 72 2c 20 74 68 65  ns, however, the
0600: 20 75 73 65 20 6f 66 20 3c 63 69 74 65 3e 28 78   use of <cite>(x
0610: 29 69 6e 65 74 64 3c 2f 63 69 74 65 3e 20 6f 72  )inetd</cite> or
0620: 20 43 47 49 20 73 75 70 70 6f 72 74 20 69 73 20   CGI support is 
0630: 69 6e 64 69 63 61 74 65 64 2e 0d 0a 0d 0a 53 65  indicated.....Se
0640: 74 74 69 6e 67 20 75 70 20 66 6f 73 73 69 6c 20  tting up fossil 
0650: 66 6f 72 20 43 47 49 20 73 75 70 70 6f 72 74 20  for CGI support 
0660: 69 73 20 73 69 6d 70 6c 65 2e 20 20 28 53 65 74  is simple.  (Set
0670: 74 69 6e 67 20 75 70 20 79 6f 75 72 20 77 65 62  ting up your web
0680: 20 73 65 72 76 65 72 20 66 6f 72 20 43 47 49 20   server for CGI 
0690: 73 75 70 70 6f 72 74 20 6d 61 79 20 6f 72 20 6d  support may or m
06a0: 61 79 20 6e 6f 74 20 62 65 20 73 69 6d 70 6c 65  ay not be simple
06b0: 2c 20 62 75 74 20 69 74 20 69 73 20 6f 75 74 20  , but it is out 
06c0: 6f 66 20 73 63 6f 70 65 20 6f 66 20 74 68 69 73  of scope of this
06d0: 20 72 65 63 69 70 65 2e 20 20 43 6f 6e 73 75 6c   recipe.  Consul
06e0: 74 20 79 6f 75 72 20 77 65 62 20 73 65 72 76 65  t your web serve
06f0: 72 2f 73 65 72 76 69 63 65 20 70 72 6f 76 69 64  r/service provid
0700: 65 72 27 73 20 64 6f 63 75 6d 65 6e 74 61 74 69  er's documentati
0710: 6f 6e 20 66 6f 72 20 74 68 69 73 2e 29 0d 0a 0d  on for this.)...
0720: 0a 3c 68 34 3e 55 4e 49 58 3c 2f 68 34 3e 0d 0a  .<h4>UNIX</h4>..
0730: 20 20 31 2e 20 20 46 69 6e 64 20 79 6f 75 72 20    1.  Find your 
0740: 43 47 49 20 73 63 72 69 70 74 73 20 64 69 72 65  CGI scripts dire
0750: 63 74 6f 72 79 20 28 69 66 20 61 70 70 6c 69 63  ctory (if applic
0760: 61 62 6c 65 29 2e 20 20 54 68 69 73 20 69 73 20  able).  This is 
0770: 63 6f 6d 6d 6f 6e 6c 79 20 73 6f 6d 65 74 68 69  commonly somethi
0780: 6e 67 20 6c 69 6b 65 20 3c 62 61 73 65 3e 2f 63  ng like <base>/c
0790: 67 69 2d 62 69 6e 2f 2c 20 62 75 74 20 64 6f 65  gi-bin/, but doe
07a0: 73 20 6e 6f 74 20 68 61 76 65 20 74 6f 20 62 65  s not have to be
07b0: 2e 0d 0a 20 20 32 2e 20 20 49 6e 73 69 64 65 20  ...  2.  Inside 
07c0: 74 68 61 74 20 64 69 72 65 63 74 6f 72 79 20 62  that directory b
07d0: 75 69 6c 64 20 61 20 73 63 72 69 70 74 20 66 69  uild a script fi
07e0: 6c 65 20 77 68 69 63 68 20 6c 6f 6f 6b 73 20 6c  le which looks l
07f0: 69 6b 65 20 74 68 69 73 3a 3c 62 72 3e 3c 63 6f  ike this:<br><co
0800: 64 65 3e 3c 70 72 65 3e 20 20 23 21 20 2f 75 73  de><pre>  #! /us
0810: 72 2f 62 69 6e 2f 65 6e 76 20 66 6f 73 73 69 6c  r/bin/env fossil
0820: 3c 62 72 3e 20 20 72 65 70 6f 73 69 74 6f 72 79  <br>  repository
0830: 3a 20 2f 66 75 6c 6c 2f 70 61 74 68 2f 74 6f 2f  : /full/path/to/
0840: 72 65 70 6f 73 69 74 6f 72 79 2f 66 69 6c 65 2e  repository/file.
0850: 66 73 6c 3c 2f 70 72 65 3e 3c 2f 63 6f 64 65 3e  fsl</pre></code>
0860: 0d 0a 20 20 33 2e 20 20 45 6e 73 75 72 65 20 74  ..  3.  Ensure t
0870: 68 61 74 20 74 68 65 20 73 63 72 69 70 74 20 66  hat the script f
0880: 69 6c 65 20 73 6f 20 67 65 6e 65 72 61 74 65 64  ile so generated
0890: 20 69 73 20 73 65 74 20 65 78 65 63 75 74 61 62   is set executab
08a0: 6c 65 20 66 6f 72 20 74 68 65 20 43 47 49 20 75  le for the CGI u
08b0: 73 65 72 20 61 63 63 6f 75 6e 74 2e 0d 0a 20 20  ser account...  
08c0: 34 2e 20 20 45 6e 73 75 72 65 20 74 68 61 74 20  4.  Ensure that 
08d0: 65 76 65 72 79 20 64 69 72 65 63 74 6f 72 79 20  every directory 
08e0: 69 6e 20 74 68 65 20 70 61 74 68 20 6c 65 61 64  in the path lead
08f0: 69 6e 67 20 74 6f 20 74 68 65 20 72 65 70 6f 73  ing to the repos
0900: 69 74 6f 72 79 20 69 73 20 20 62 72 6f 77 73 65  itory is  browse
0910: 61 62 6c 65 20 28 63 68 6d 6f 64 20 2b 78 29 20  able (chmod +x) 
0920: 74 6f 20 74 68 65 20 43 47 49 20 75 73 65 72 20  to the CGI user 
0930: 61 63 63 6f 75 6e 74 2e 0d 0a 20 20 35 2e 20 20  account...  5.  
0940: 45 6e 73 75 72 65 20 74 68 61 74 20 74 68 65 20  Ensure that the 
0950: 72 65 70 6f 73 69 74 6f 72 79 20 66 69 6c 65 20  repository file 
0960: 69 73 20 72 65 61 64 61 62 6c 65 20 3c 65 6d 3e  is readable <em>
0970: 61 6e 64 3c 2f 65 6d 3e 20 77 72 69 74 61 62 6c  and</em> writabl
0980: 65 20 74 6f 20 74 68 65 20 43 47 49 20 75 73 65  e to the CGI use
0990: 72 20 61 63 63 6f 75 6e 74 2e 0d 0a 0d 0a 54 68  r account.....Th
09a0: 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 3c 63 69 74  e following <cit
09b0: 65 3e 62 61 73 68 3c 2f 63 69 74 65 3e 20 73 63  e>bash</cite> sc
09c0: 72 69 70 74 20 63 61 6e 20 62 65 20 72 75 6e 20  ript can be run 
09d0: 66 72 6f 6d 20 77 69 74 68 69 6e 20 74 68 65 20  from within the 
09e0: 64 69 72 65 63 74 6f 72 79 20 63 6f 6e 74 61 69  directory contai
09f0: 6e 69 6e 67 20 74 68 65 20 3c 63 69 74 65 3e 46  ning the <cite>F
0a00: 6f 73 73 69 6c 3c 2f 63 69 74 65 3e 20 72 65 70  ossil</cite> rep
0a10: 6f 73 69 74 6f 72 69 65 73 20 74 6f 20 62 65 20  ositories to be 
0a20: 73 68 61 72 65 64 20 28 61 6e 64 2c 20 6f 66 20  shared (and, of 
0a30: 63 6f 75 72 73 65 2c 20 61 6c 74 65 72 65 64 20  course, altered 
0a40: 66 6f 72 20 79 6f 75 72 20 73 65 74 75 70 29 20  for your setup) 
0a50: 74 6f 20 73 65 74 20 73 6f 6d 65 20 6f 66 20 74  to set some of t
0a60: 68 65 20 63 6f 6e 73 74 72 61 69 6e 74 73 20 61  he constraints a
0a70: 62 6f 76 65 20 75 70 20 61 75 74 6f 6d 61 74 69  bove up automati
0a80: 63 61 6c 6c 79 3a 0d 0a 0d 0a 3c 6e 6f 77 69 6b  cally:....<nowik
0a90: 69 3e 3c 66 6f 6e 74 20 66 61 63 65 3d 22 6d 6f  i><font face="mo
0aa0: 6e 6f 73 70 61 63 65 22 3e 0d 0a 3c 66 6f 6e 74  nospace">..<font
0ab0: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
0ac0: 3e 26 6e 62 73 70 3b 31 20 3c 2f 66 6f 6e 74 3e  >&nbsp;1 </font>
0ad0: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30  <font color="#00
0ae0: 30 30 66 66 22 3e 23 21 20 2f 75 73 72 2f 62 69  00ff">#! /usr/bi
0af0: 6e 2f 65 6e 76 20 62 61 73 68 3c 2f 66 6f 6e 74  n/env bash</font
0b00: 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c  ><br>..<font col
0b10: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 6e 62  or="#a52a2a">&nb
0b20: 73 70 3b 32 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e  sp;2 </font><fon
0b30: 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38 62 38 62  t color="#008b8b
0b40: 22 3e 43 47 49 5f 52 4f 4f 54 3c 2f 66 6f 6e 74  ">CGI_ROOT</font
0b50: 3e 3d 2f 75 73 72 2f 6c 69 62 2f 66 6f 73 73 69  >=/usr/lib/fossi
0b60: 6c 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c  l<br>..<font col
0b70: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 6e 62  or="#a52a2a">&nb
0b80: 73 70 3b 33 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e  sp;3 </font><fon
0b90: 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38 62 38 62  t color="#008b8b
0ba0: 22 3e 52 45 50 4f 53 49 54 4f 52 59 5f 4f 57 4e  ">REPOSITORY_OWN
0bb0: 45 52 3c 2f 66 6f 6e 74 3e 3d 6d 69 63 68 61 65  ER</font>=michae
0bc0: 6c 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c  l<br>..<font col
0bd0: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 6e 62  or="#a52a2a">&nb
0be0: 73 70 3b 34 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e  sp;4 </font><fon
0bf0: 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38 62 38 62  t color="#008b8b
0c00: 22 3e 43 47 49 5f 47 52 4f 55 50 3c 2f 66 6f 6e  ">CGI_GROUP</fon
0c10: 74 3e 3d 77 77 77 2d 64 61 74 61 3c 62 72 3e 0d  t>=www-data<br>.
0c20: 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  .<font color="#a
0c30: 35 32 61 32 61 22 3e 26 6e 62 73 70 3b 35 20 3c  52a2a">&nbsp;5 <
0c40: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
0c50: 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 69  r="#a52a2a"><b>i
0c60: 66 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73  f</b></font>&nbs
0c70: 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  p;<font color="#
0c80: 61 35 32 61 32 61 22 3e 3c 62 3e 5b 3c 2f 62 3e  a52a2a"><b>[</b>
0c90: 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f  </font>&nbsp;<fo
0ca0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 36 61 35 61 63  nt color="#6a5ac
0cb0: 64 22 3e 60 77 68 6f 61 6d 69 60 3c 2f 66 6f 6e  d">`whoami`</fon
0cc0: 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f  t>&nbsp;<font co
0cd0: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62  lor="#a52a2a"><b
0ce0: 3e 3d 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62  >=</b></font>&nb
0cf0: 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  sp;<font color="
0d00: 23 66 66 30 30 66 66 22 3e 27 72 6f 6f 74 27 3c  #ff00ff">'root'<
0d10: 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e  /font>&nbsp;<fon
0d20: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61  t color="#a52a2a
0d30: 22 3e 3c 62 3e 5d 3c 2f 62 3e 3c 2f 66 6f 6e 74  "><b>]</b></font
0d40: 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c  ><br>..<font col
0d50: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 6e 62  or="#a52a2a">&nb
0d60: 73 70 3b 36 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e  sp;6 </font><fon
0d70: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61  t color="#a52a2a
0d80: 22 3e 3c 62 3e 74 68 65 6e 3c 2f 62 3e 3c 2f 66  "><b>then</b></f
0d90: 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20  ont><br>..<font 
0da0: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
0db0: 26 6e 62 73 70 3b 37 20 3c 2f 66 6f 6e 74 3e 26  &nbsp;7 </font>&
0dc0: 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74  nbsp;&nbsp;<font
0dd0: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
0de0: 3e 3c 62 3e 66 6f 72 3c 2f 62 3e 3c 2f 66 6f 6e  ><b>for</b></fon
0df0: 74 3e 26 6e 62 73 70 3b 72 65 70 6f 73 69 74 6f  t>&nbsp;reposito
0e00: 72 79 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  ry <font color="
0e10: 23 61 35 32 61 32 61 22 3e 3c 62 3e 69 6e 3c 2f  #a52a2a"><b>in</
0e20: 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 2a  b></font>&nbsp;*
0e30: 2e 66 73 6c 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20  .fsl<br>..<font 
0e40: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
0e50: 26 6e 62 73 70 3b 38 20 3c 2f 66 6f 6e 74 3e 26  &nbsp;8 </font>&
0e60: 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74  nbsp;&nbsp;<font
0e70: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
0e80: 3e 3c 62 3e 64 6f 3c 2f 62 3e 3c 2f 66 6f 6e 74  ><b>do</b></font
0e90: 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c  ><br>..<font col
0ea0: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 6e 62  or="#a52a2a">&nb
0eb0: 73 70 3b 39 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73  sp;9 </font>&nbs
0ec0: 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e  p;&nbsp;&nbsp;&n
0ed0: 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  bsp;<font color=
0ee0: 22 23 30 30 38 62 38 62 22 3e 53 4f 55 52 43 45  "#008b8b">SOURCE
0ef0: 3c 2f 66 6f 6e 74 3e 3d 3c 66 6f 6e 74 20 63 6f  </font>=<font co
0f00: 6c 6f 72 3d 22 23 36 61 35 61 63 64 22 3e 60 3c  lor="#6a5acd">`<
0f10: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
0f20: 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 70  r="#a52a2a"><b>p
0f30: 77 64 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f  wd</b></font><fo
0f40: 6e 74 20 63 6f 6c 6f 72 3d 22 23 36 61 35 61 63  nt color="#6a5ac
0f50: 64 22 3e 60 3c 2f 66 6f 6e 74 3e 2f 3c 66 6f 6e  d">`</font>/<fon
0f60: 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30  t color="#a020f0
0f70: 22 3e 24 72 65 70 6f 73 69 74 6f 72 79 3c 2f 66  ">$repository</f
0f80: 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20  ont><br>..<font 
0f90: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
0fa0: 31 30 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b  10 </font>&nbsp;
0fb0: 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73  &nbsp;&nbsp;&nbs
0fc0: 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  p;<font color="#
0fd0: 30 30 38 62 38 62 22 3e 44 45 53 54 49 4e 41 54  008b8b">DESTINAT
0fe0: 49 4f 4e 3c 2f 66 6f 6e 74 3e 3d 3c 66 6f 6e 74  ION</font>=<font
0ff0: 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22   color="#a020f0"
1000: 3e 24 43 47 49 5f 52 4f 4f 54 3c 2f 66 6f 6e 74  >$CGI_ROOT</font
1010: 3e 2f 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  >/<font color="#
1020: 61 30 32 30 66 30 22 3e 24 7b 3c 2f 66 6f 6e 74  a020f0">${</font
1030: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  ><font color="#a
1040: 30 32 30 66 30 22 3e 72 65 70 6f 73 69 74 6f 72  020f0">repositor
1050: 79 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f  y</font><font co
1060: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62  lor="#a52a2a"><b
1070: 3e 25 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 2e 66 73  >%</b></font>.fs
1080: 6c 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  l<font color="#a
1090: 30 32 30 66 30 22 3e 7d 3c 2f 66 6f 6e 74 3e 3c  020f0">}</font><
10a0: 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72  br>..<font color
10b0: 3d 22 23 61 35 32 61 32 61 22 3e 31 31 20 3c 2f  ="#a52a2a">11 </
10c0: 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70  font>&nbsp;&nbsp
10d0: 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f  ;&nbsp;&nbsp;<fo
10e0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
10f0: 61 22 3e 3c 62 3e 65 63 68 6f 3c 2f 62 3e 3c 2f  a"><b>echo</b></
1100: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72  font><font color
1110: 3d 22 23 66 66 30 30 66 66 22 3e 26 6e 62 73 70  ="#ff00ff">&nbsp
1120: 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f  ;</font><font co
1130: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62  lor="#a52a2a"><b
1140: 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e  >&quot;</b></fon
1150: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  t><font color="#
1160: 66 66 30 30 66 66 22 3e 23 21 20 2f 75 73 72 2f  ff00ff">#! /usr/
1170: 62 69 6e 2f 65 6e 76 20 66 6f 73 73 69 6c 3c 2f  bin/env fossil</
1180: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72  font><font color
1190: 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 26 71  ="#a52a2a"><b>&q
11a0: 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c  uot;</b></font><
11b0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30  font color="#ff0
11c0: 30 66 66 22 3e 26 6e 62 73 70 3b 3c 2f 66 6f 6e  0ff">&nbsp;</fon
11d0: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  t><font color="#
11e0: 61 35 32 61 32 61 22 3e 3c 62 3e 26 67 74 3b 3c  a52a2a"><b>&gt;<
11f0: 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b  /b></font>&nbsp;
1200: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30  <font color="#a0
1210: 32 30 66 30 22 3e 24 44 45 53 54 49 4e 41 54 49  20f0">$DESTINATI
1220: 4f 4e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c  ON</font><br>..<
1230: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32  font color="#a52
1240: 61 32 61 22 3e 31 32 20 3c 2f 66 6f 6e 74 3e 26  a2a">12 </font>&
1250: 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70  nbsp;&nbsp;&nbsp
1260: 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c  ;&nbsp;<font col
1270: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e  or="#a52a2a"><b>
1280: 65 63 68 6f 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c  echo</b></font><
1290: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30  font color="#ff0
12a0: 30 66 66 22 3e 26 6e 62 73 70 3b 3c 2f 66 6f 6e  0ff">&nbsp;</fon
12b0: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  t><font color="#
12c0: 61 35 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74  a52a2a"><b>&quot
12d0: 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e  ;</b></font><fon
12e0: 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66  t color="#ff00ff
12f0: 22 3e 72 65 70 6f 73 69 74 6f 72 79 3a 20 3c 2f  ">repository: </
1300: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72  font><font color
1310: 3d 22 23 61 30 32 30 66 30 22 3e 24 53 4f 55 52  ="#a020f0">$SOUR
1320: 43 45 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63  CE</font><font c
1330: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c  olor="#a52a2a"><
1340: 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f  b>&quot;</b></fo
1350: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  nt><font color="
1360: 23 66 66 30 30 66 66 22 3e 26 6e 62 73 70 3b 3c  #ff00ff">&nbsp;<
1370: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
1380: 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 26  r="#a52a2a"><b>&
1390: 67 74 3b 26 67 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e  gt;&gt;</b></fon
13a0: 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f  t>&nbsp;<font co
13b0: 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 24 44  lor="#a020f0">$D
13c0: 45 53 54 49 4e 41 54 49 4f 4e 3c 2f 66 6f 6e 74  ESTINATION</font
13d0: 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c  ><br>..<font col
13e0: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 31 33 20  or="#a52a2a">13 
13f0: 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62  </font>&nbsp;&nb
1400: 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 63  sp;&nbsp;&nbsp;c
1410: 68 6f 77 6e 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72  hown <font color
1420: 3d 22 23 61 30 32 30 66 30 22 3e 24 52 45 50 4f  ="#a020f0">$REPO
1430: 53 49 54 4f 52 59 5f 4f 57 4e 45 52 3c 2f 66 6f  SITORY_OWNER</fo
1440: 6e 74 3e 3a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  nt>:<font color=
1450: 22 23 61 30 32 30 66 30 22 3e 24 43 47 49 5f 47  "#a020f0">$CGI_G
1460: 52 4f 55 50 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70  ROUP</font>&nbsp
1470: 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  ;<font color="#a
1480: 30 32 30 66 30 22 3e 24 53 4f 55 52 43 45 3c 2f  020f0">$SOURCE</
1490: 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74  font><br>..<font
14a0: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
14b0: 3e 31 34 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70  >14 </font>&nbsp
14c0: 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62  ;&nbsp;&nbsp;&nb
14d0: 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  sp;<font color="
14e0: 23 61 35 32 61 32 61 22 3e 3c 62 3e 63 68 6d 6f  #a52a2a"><b>chmo
14f0: 64 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73  d</b></font>&nbs
1500: 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  p;<font color="#
1510: 66 66 30 30 66 66 22 3e 36 36 34 3c 2f 66 6f 6e  ff00ff">664</fon
1520: 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f  t>&nbsp;<font co
1530: 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 24 53  lor="#a020f0">$S
1540: 4f 55 52 43 45 3c 2f 66 6f 6e 74 3e 3c 62 72 3e  OURCE</font><br>
1550: 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  ..<font color="#
1560: 61 35 32 61 32 61 22 3e 31 35 20 3c 2f 66 6f 6e  a52a2a">15 </fon
1570: 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e  t>&nbsp;&nbsp;&n
1580: 62 73 70 3b 26 6e 62 73 70 3b 63 68 6f 77 6e 20  bsp;&nbsp;chown 
1590: 72 6f 6f 74 3a 72 6f 6f 74 20 3c 66 6f 6e 74 20  root:root <font 
15a0: 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e  color="#a020f0">
15b0: 24 44 45 53 54 49 4e 41 54 49 4f 4e 3c 2f 66 6f  $DESTINATION</fo
15c0: 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63  nt><br>..<font c
15d0: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 31  olor="#a52a2a">1
15e0: 36 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26  6 </font>&nbsp;&
15f0: 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70  nbsp;&nbsp;&nbsp
1600: 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  ;<font color="#a
1610: 35 32 61 32 61 22 3e 3c 62 3e 63 68 6d 6f 64 3c  52a2a"><b>chmod<
1620: 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b  /b></font>&nbsp;
1630: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66  <font color="#ff
1640: 30 30 66 66 22 3e 37 35 35 3c 2f 66 6f 6e 74 3e  00ff">755</font>
1650: 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f  &nbsp;<font colo
1660: 72 3d 22 23 61 30 32 30 66 30 22 3e 24 44 45 53  r="#a020f0">$DES
1670: 54 49 4e 41 54 49 4f 4e 3c 2f 66 6f 6e 74 3e 3c  TINATION</font><
1680: 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72  br>..<font color
1690: 3d 22 23 61 35 32 61 32 61 22 3e 31 37 20 3c 2f  ="#a52a2a">17 </
16a0: 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70  font>&nbsp;&nbsp
16b0: 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  ;<font color="#a
16c0: 35 32 61 32 61 22 3e 3c 62 3e 64 6f 6e 65 3c 2f  52a2a"><b>done</
16d0: 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c  b></font><br>..<
16e0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32  font color="#a52
16f0: 61 32 61 22 3e 31 38 20 3c 2f 66 6f 6e 74 3e 3c  a2a">18 </font><
1700: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32  font color="#a52
1710: 61 32 61 22 3e 3c 62 3e 65 6c 73 65 3c 2f 62 3e  a2a"><b>else</b>
1720: 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f  </font><br>..<fo
1730: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
1740: 61 22 3e 31 39 20 3c 2f 66 6f 6e 74 3e 26 6e 62  a">19 </font>&nb
1750: 73 70 3b 26 6e 62 73 70 3b 73 75 64 6f 20 3c 66  sp;&nbsp;sudo <f
1760: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30  ont color="#a020
1770: 66 30 22 3e 24 30 3c 2f 66 6f 6e 74 3e 26 6e 62  f0">$0</font>&nb
1780: 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  sp;<font color="
1790: 23 61 30 32 30 66 30 22 3e 24 2a 3c 2f 66 6f 6e  #a020f0">$*</fon
17a0: 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f  t><br>..<font co
17b0: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 32 30  lor="#a52a2a">20
17c0: 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f   </font><font co
17d0: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62  lor="#a52a2a"><b
17e0: 3e 66 69 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 62  >fi</b></font><b
17f0: 72 3e 0d 0a 3c 2f 66 6f 6e 74 3e 3c 2f 6e 6f 77  r>..</font></now
1800: 69 6b 69 3e 0d 0a 0d 0a 3c 68 34 3e 57 69 6e 64  iki>....<h4>Wind
1810: 6f 77 73 3c 2f 68 34 3e 0d 0a 3c 69 3e 53 6f 6d  ows</h4>..<i>Som
1820: 65 6f 6e 65 20 77 69 74 68 20 61 63 63 65 73 73  eone with access
1830: 20 74 6f 20 61 20 57 69 6e 64 6f 77 73 20 6d 61   to a Windows ma
1840: 63 68 69 6e 65 20 63 6f 6d 70 6c 65 74 65 20 77  chine complete w
1850: 69 74 68 20 77 65 62 20 73 65 72 76 65 72 2c 20  ith web server, 
1860: 65 74 63 2e 20 6e 65 65 64 73 20 74 6f 20 77 72  etc. needs to wr
1870: 69 74 65 20 74 68 69 73 20 70 6f 72 74 69 6f 6e  ite this portion
1880: 2e 20 20 54 68 65 20 43 47 49 20 73 63 72 69 70  .  The CGI scrip
1890: 74 20 69 73 20 74 68 65 20 73 61 6d 65 2c 20 62  t is the same, b
18a0: 75 74 20 6e 6f 6e 65 20 6f 66 20 74 68 65 20 6f  ut none of the o
18b0: 74 68 65 72 20 69 6e 73 74 72 75 63 74 69 6f 6e  ther instruction
18c0: 73 20 6d 61 6b 65 20 73 65 6e 73 65 2e 3c 2f 69  s make sense.</i
18d0: 3e 0d 0a 0d 0a 3c 68 33 3e 44 69 73 63 75 73 73  >....<h3>Discuss
18e0: 69 6f 6e 3c 2f 68 33 3e 0d 0a 55 73 69 6e 67 20  ion</h3>..Using 
18f0: 74 68 65 20 43 47 49 20 73 65 72 76 65 72 20 69  the CGI server i
1900: 73 20 74 68 65 20 62 65 73 74 20 73 6f 6c 75 74  s the best solut
1910: 69 6f 6e 20 63 6f 6d 62 69 6e 69 6e 67 20 61 6e  ion combining an
1920: 20 65 78 69 73 74 69 6e 67 20 77 65 62 20 69 6e   existing web in
1930: 66 72 61 73 74 72 75 63 74 75 72 65 20 61 6e 64  frastructure and
1940: 20 74 68 65 20 73 68 61 72 69 6e 67 20 6f 66 20   the sharing of 
1950: 6d 61 6e 79 20 3c 63 69 74 65 3e 46 6f 73 73 69  many <cite>Fossi
1960: 6c 3c 2f 63 69 74 65 3e 20 72 65 70 6f 73 69 74  l</cite> reposit
1970: 6f 72 69 65 73 2e 20 20 55 6e 6c 69 6b 65 20 74  ories.  Unlike t
1980: 68 65 20 61 64 2d 68 6f 63 20 73 6f 6c 75 74 69  he ad-hoc soluti
1990: 6f 6e 20 77 68 69 63 68 20 72 65 71 75 69 72 65  on which require
19a0: 73 2c 20 69 6e 20 65 66 66 65 63 74 2c 20 61 20  s, in effect, a 
19b0: 73 65 70 61 72 61 74 65 20 70 6f 72 74 20 66 6f  separate port fo
19c0: 72 20 65 61 63 68 20 73 69 6d 75 6c 74 61 6e 65  r each simultane
19d0: 6f 75 73 6c 79 2d 73 68 61 72 65 64 20 72 65 70  ously-shared rep
19e0: 6f 73 69 74 6f 72 79 2c 20 61 6e 64 20 77 68 69  ository, and whi
19f0: 63 68 20 72 65 71 75 69 72 65 73 20 73 65 76 65  ch requires seve
1a00: 72 61 6c 20 69 6e 73 74 61 6e 63 65 73 20 6f 66  ral instances of
1a10: 20 66 6f 73 73 69 6c 20 72 75 6e 6e 69 6e 67 20   fossil running 
1a20: 2d 2d 20 6f 6e 65 20 66 6f 72 20 65 61 63 68 20  -- one for each 
1a30: 73 68 61 72 65 64 20 72 65 70 6f 73 69 74 6f 72  shared repositor
1a40: 79 20 2d 2d 20 74 68 65 20 43 47 49 20 61 70 70  y -- the CGI app
1a50: 72 6f 61 63 68 20 75 73 65 73 20 55 52 4c 73 20  roach uses URLs 
1a60: 74 6f 20 64 69 73 74 69 6e 67 75 69 73 68 20 62  to distinguish b
1a70: 65 74 77 65 65 6e 20 72 65 70 6f 73 69 74 6f 72  etween repositor
1a80: 69 65 73 20 61 6e 64 20 6f 6e 6c 79 20 28 62 72  ies and only (br
1a90: 69 65 66 6c 79 29 20 72 75 6e 73 20 61 20 63 6f  iefly) runs a co
1aa0: 70 79 20 6f 66 20 66 6f 73 73 69 6c 20 77 68 65  py of fossil whe
1ab0: 6e 20 74 68 65 20 72 65 70 6f 73 69 74 6f 72 79  n the repository
1ac0: 20 69 73 20 61 63 74 75 61 6c 6c 79 20 61 63 63   is actually acc
1ad0: 65 73 73 65 64 2e 0d 0a 0d 0a 53 68 61 72 69 6e  essed.....Sharin
1ae0: 67 20 72 65 70 6f 73 69 74 6f 72 69 65 73 20 77  g repositories w
1af0: 69 74 68 20 43 47 49 20 69 73 20 72 65 61 6c 6c  ith CGI is reall
1b00: 79 20 6f 6e 6c 79 20 77 6f 72 74 68 20 74 68 65  y only worth the
1b10: 20 65 66 66 6f 72 74 20 69 66 20 6d 6f 72 65 20   effort if more 
1b20: 74 68 61 6e 20 6f 6e 65 20 72 65 70 6f 73 69 74  than one reposit
1b30: 6f 72 79 20 69 73 20 62 65 69 6e 67 20 73 68 61  ory is being sha
1b40: 72 65 64 2c 20 68 6f 77 65 76 65 72 2e 20 20 57  red, however.  W
1b50: 69 74 68 20 6f 6e 6c 79 20 6f 6e 65 20 62 65 69  ith only one bei
1b60: 6e 67 20 73 68 61 72 65 64 2c 20 3c 63 6f 64 65  ng shared, <code
1b70: 3e 66 6f 73 73 69 6c 20 73 65 72 76 65 72 3c 2f  >fossil server</
1b80: 63 6f 64 65 3e 20 69 73 20 6c 69 6b 65 6c 79 20  code> is likely 
1b90: 6d 6f 72 65 20 74 68 61 6e 20 61 64 65 71 75 61  more than adequa
1ba0: 74 65 20 6f 72 20 74 68 65 20 75 73 65 20 6f 66  te or the use of
1bb0: 20 28 78 29 69 6e 65 74 64 20 6d 61 79 20 62 65   (x)inetd may be
1bc0: 20 69 6e 64 69 63 61 74 65 64 2e 20 20 49 66 2c   indicated.  If,
1bd0: 20 68 6f 77 65 76 65 72 2c 20 74 68 65 72 65 20   however, there 
1be0: 69 73 20 61 6c 72 65 61 64 79 20 61 6e 20 65 78  is already an ex
1bf0: 69 73 74 69 6e 67 20 77 65 62 20 69 6e 66 72 61  isting web infra
1c00: 73 74 72 75 63 74 75 72 65 20 69 6e 20 70 6c 61  structure in pla
1c10: 63 65 2c 20 43 47 49 20 73 74 69 6c 6c 20 6d 61  ce, CGI still ma
1c20: 79 20 62 65 20 70 72 65 66 65 72 72 65 64 20 69  y be preferred i
1c30: 66 20 6f 6e 6c 79 20 66 6f 72 20 63 6f 6e 73 69  f only for consi
1c40: 73 74 65 6e 63 79 20 61 6e 64 20 6d 61 69 6e 74  stency and maint
1c50: 61 69 6e 61 62 69 6c 69 74 79 20 6f 66 20 74 68  ainability of th
1c60: 65 20 73 79 73 74 65 6d 20 61 73 20 61 20 77 68  e system as a wh
1c70: 6f 6c 65 2e 0a 5a 20 32 39 38 62 62 64 65 64 62  ole..Z 298bbdedb
1c80: 36 39 39 34 62 66 65 32 36 35 63 33 34 31 63 35  6994bfe265c341c5
1c90: 35 63 30 39 34 62 39 0a                          5c094b9.