<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>post-commit</title> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="stylesheet" href="style.css" type="text/css" /> <link rel="stylesheet" href="local.css" type="text/css" /> </head> <body> <div class="page"> <div class="pageheader"> <div class="header"> <span> <span class="parentlinks"> <a href="./index.html">ikiwiki</a>/ </span> <span class="title"> post-commit </span> </span> </div> </div> <div id="pagebody"> <div id="content" role="main"> <p>If your wiki is kept in <a href="./rcs.html">revision control</a>, a post-commit hook is run every time you commit a change to your repository.</p> <p>ikiwiki generates the "post-commit hook" once you've uncommented the relevant section (under wrappers) in the ikiwiki.setup.</p> <p>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 specified when you ran --wrapper, and can only be used to update and compile that one checkout into the specified html directory.</p> <p>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 your wiki checkout and html directory. If so, you can safely make the wrapper suid to a user who can write there (<em>not</em> to root!). You might want to read <a href="./security.html">Security</a> first.</p> <p><a href="./setup.html">Setup</a> explains setting this up from the start and see <a href="./rcs/details.html">details</a> to know more.</p> </div> </div> <div id="footer" class="pagefooter" role="contentinfo"> <div id="pageinfo"> <div id="backlinks"> Links: <a href="./features.html">features</a> <a href="./rcs/svn.html">rcs/svn</a> <a href="./rcs/tla.html">rcs/tla</a> <a href="./security.html">security</a> <a href="./tips/integrated_issue_tracking_with_ikiwiki.html">tips/integrated issue tracking with ikiwiki</a> <a href="./usage.html">usage</a> </div> <div class="pagedate"> Last edited <span class="date">Tue Feb 26 23:01:54 2019</span> <!-- Created <span class="date">Tue Feb 26 23:01:54 2019</span> --> </div> </div> <!-- from ikiwiki --> </div> </div> </body> </html>