Rogério Brito wrote: > I am just experimenting with ikiwiki and I think that it is really good, > but I have one problem with it: it generates a ikiwiki.cgi file which is > a binary tied to the arch where I am editing the page. > > I was bitten by that because I use NFS to share my home directory among > computers that have different platforms. I have not seen any mention on > this fact in the documentation, but I may have missed it. > > It would be good if ikiwiki could use a script (perhaps just a wrapper > script) to put in the user's directory (actually, the place where the > wiki is) or, if that is too much of trouble, if you could put a very > visible warning regarding that.
It is not possible to use a scrpt for this. Unix does not allow setuid scripts, and the point of the wrapper is to ensure that ikiwiki runs as the owner of the wiki when called by eg, the web browser. --wrapper [file] Generate a wrapper binary that is hardcoded to do action speci‐ fied by the other options, using the specified input files and destination directory. The filename to use for the wrapper is optional. The wrapper is designed to be safely made suid and be run by untrusted users, as a post-commit hook, or as a CGI. There is no requirement that ikiwiki.cgi go in your NFS home directory. You can put it in /var/www or somewhere like that, and just set the cgiurl to point to it. -- see shy jo
signature.asc
Description: Digital signature