ikiwiki/doc/post-commit.mdwn

20 lines
922 B
Plaintext
Raw Normal View History

2007-08-22 04:45:44 +02:00
If your wiki is kept in [[revision_control|rcs]], a post-commit hook is run
every time you commit a change to your repository.
2006-03-11 06:34:08 +01:00
2008-01-28 09:30:43 +01:00
ikiwiki generates the "post-commit hook" once you've uncommented the relevant
section (under wrappers) in the ikiwiki.setup.
2006-03-10 10:16:07 +01:00
The generated wrapper is a C program that is designed to safely be made
suid if necessary. It's hardcoded to run ikiwiki with the settings
2006-03-11 01:40:34 +01:00
specified when you ran --wrapper, and can only be used to update and
2006-03-10 10:16:07 +01:00
compile that one checkout into the specified html directory.
Depending on your setup, the post-commit hook might end up
getting called by users who have write access to the repository, but not to
2006-03-10 10:16:07 +01:00
your wiki checkout and html directory. If so, you can safely make
the wrapper suid to a user who can write there (*not* to root!). You might
2006-03-10 10:16:07 +01:00
want to read [[Security]] first.
2006-03-13 20:29:21 +01:00
2008-01-28 09:30:43 +01:00
[[Setup]] explains setting this up from the start and see [[rcs/details]] to
know more.