summaryrefslogtreecommitdiff
path: root/doc/ikiwiki.setup
blob: 9592d36f52ecd068e60d0cf2640a7f2fe77e0e06 (plain)
  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. %config=(%config,
  8. wikiname => "MyWiki",
  9. # Be sure to customise these..
  10. srcdir => "/path/to/source",
  11. templatedir => "/path/to/templates",
  12. destdir => "/var/www/wiki",
  13. url => "http://myhost/wiki",
  14. cgiurl => "http://myhost/ikiwiki.cgi",
  15. #historyurl => "http://svn.myhost/trunk/[[]]",
  16. # Whether to integrate with svn.
  17. svn => 1,
  18. svnrepo => "/svn/wiki",
  19. # Whether to enable a cgi wrapper.
  20. cgiwrapper => 0,
  21. # Can anonymous web users edit pages?
  22. #anonok => 1,
  23. );
  24. gen_wrapper(%config,
  25. cgi => 1,
  26. wrapper => "$config{destdir}/ikiwiki.cgi",
  27. wrappermode => 06755,
  28. ) if $config{cgiwrapper};
  29. gen_wrapper(%config,
  30. # Note that this will overwrite any exsting post-commit hoo
  31. # script, which may not be what you want.
  32. wrapper => "$config{svnrepo}/hooks/post-commit",
  33. wrappermode => 04755,
  34. ) if $config{svn};