summaryrefslogtreecommitdiff
path: root/ikiwiki.setup
blob: 5a902a23cd1c6f0757b3c47d342230c797aebeee (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. # Can anonymous web users edit pages?
  20. #anonok => 1,
  21. );
  22. gen_wrapper(%config,
  23. cgi => 1,
  24. wrapper => "$config{destdir}/ikiwiki.cgi",
  25. wrappermode => 06755,
  26. );
  27. gen_wrapper(%config,
  28. # Note that this will overwrite any exsting post-commit hoo
  29. # script, which may not be what you want.
  30. wrapper => "$config{svnrepo}/hooks/post-commit",
  31. wrappermode => 04755,
  32. ) if $config{$svn};