]> sipb.mit.edu Git - ikiwiki.git/blob - doc/ikiwiki.setup
foo
[ikiwiki.git] / doc / ikiwiki.setup
1 #!/usr/bin/perl
2 # Configuration file for ikiwiki.
3 # Passing this to ikiwiki --setup will make ikiwiki generate tw
4 # wrapper programs, one for cgi and one for a subversion post-commit hook.
5 #
6 # Remember to re-run ikiwiki --setup any time you edit this file.
7
8 %config=(%config,
9         
10         wikiname => "MyWiki",
11
12         # Be sure to customise these..
13         srcdir => "/path/to/source",
14         templatedir => "/path/to/templates",
15         destdir => "/var/www/wiki",
16
17         url => "http://myhost/wiki",
18         cgiurl => "http://myhost/ikiwiki.cgi",
19         #historyurl => "http://svn.myhost/trunk/[[]]",
20         
21         # Whether to integrate with svn.
22         svn => 1,
23         svnrepo => "/svn/wiki",
24
25         # Whether to enable a cgi wrapper.
26         cgiwrapper => 0,
27         # Can anonymous web users edit pages?
28         #anonok => 1,
29
30 );      
31
32 gen_wrapper(%config,
33         
34         cgi => 1,
35         wrapper => "$config{destdir}/ikiwiki.cgi",
36         wrappermode => 06755,
37         
38 ) if $config{cgiwrapper};
39
40 gen_wrapper(%config,
41         
42         # Note that this will overwrite any exsting post-commit hoo
43         # script, which may not be what you want.
44         wrapper => "$config{svnrepo}/hooks/post-commit",
45         wrappermode => 04755,
46
47 ) if $config{svn};