[m-dev.] cvs diff: install_webpage

Tyson Richard DOWD trd at students.cs.mu.oz.au
Tue Feb 18 11:04:49 AEDT 1997


> Tyson Richard DOWD, you wrote:
> > 
> > Bert, since we were discussing this earlier today, can you review
> > this (small) change?
> > 
> > ===================================================================
> > 
> > Estimated hours taken: 0.2
> > 
> > Fix a permissions problem with installing new webpages.
> > 
> > tools/install_webpage:
> > 	Remove the checked out modules before beginning, and
> > 	chmod them after checkout, so that all pages are readable 
> > 	by all. Then, when installed, the copies will also be
> > 	world readable. This is important so that new files get
> > 	created with the correct permissions, regardless of the
> > 	permissions they have in the CVS archive.
> 
> Why do you need to remove them before beginning?

I'm removing /home/mercury/public/test_mercury/www_dir, not the
installed documents. I need to remove them so that it doesn't matter
who runs the script, the chmod works (and you don't get any warnings).
Then the copy will ensure that new files get created with the right
permissions. 

Alternately, I could not remove the files, but just chmod them, but
that means the logs are full of warnings. Also, I could check each file
for ownership before chmoding it, but its too much work.

-- 
       Tyson Dowd           # "Most people's C code should be indented
                            #  six feet downward and covered with 
     trd at cs.mu.oz.au        #  dirt."
http://www.cs.mu.oz.au/~trd # - Blair Houghton, on C code indentation



More information about the developers mailing list