On 2015-06-23 Tue 08:23 AM |, Nick Holland wrote:
> On 06/23/15 06:14, Craig Skinner wrote:
> > 
> > Ummm.... I was thinking of something that could generate $RELEASE
> > index.txt files, including siteXX.tgz & siteXX-<hostname>.tgz files.
> 
> oh please no.
> That is NOT the web server's job!
> 
> This is a task easily -- and properly! -- done outside the web server.
> Your script is the right idea, but it should be run whenever whatever
> updates the contents of the directory runs, rather than periodically
> from cron.
> 

The release-indexer script is run manually as an unpriv user,
after building siteXX files.

The script I use to generate siteXX files needs to run as root.

I have unpriv cron run release-indexer too, incase I forget that step...

> Even if the idea of generating a /very/ special purpose file in the web
> server wasn't a bad idea all around, you will note that this also
> violates the design of the chrooted webserver -- not only do you now
> have the webserver CREATING files, you have it doing it in the content area.
> 

When httpd auto generates an index.html, it doesn't get written to disk.

I was thinking httpd could pump out an index.txt file too.

Probably pretty much the same code, without the CSS & links.

Yes?
-- 
Show respect for age. Drink good whisky for a change.

Reply via email to