Website now autocleans old files/pages (was: Re: FreeBSD web build failed on build-web.stream.freebsd.org)

Glen Barber gjb at FreeBSD.org
Tue Feb 18 19:32:59 UTC 2014


On Tue, Feb 18, 2014 at 12:36:55PM -0500, Glen Barber wrote:
> On Tue, Feb 18, 2014 at 05:33:53PM +0000, User Www-data wrote:
> > [...]
> >
> >        13.59 real         6.06 user         8.14 sys
> > mkdir: /usr/local/www/www.freebsd.org-clean: Permission denied
> > *** [realinstall] Error code 1
> > 
> > Stop in /home/www/build/head/en_US.ISO8859-1/htdocs.
> >         0.03 real         0.00 user         0.02 sys
> 
> Whoops.
> 
> This is me "fixing" things.
> 

So, what I was working on is making the build clean up after itself, in
particular, things that are no longer part of the build.

DESTDIR has changed, and is purged before every build (even the "quick"
incremental builds).  Once the build finishes, the files are installed
to the new DESTDIR, then synced to the public web root.

When a full site refresh is done (once a week, as was done before),
rsync is called with '--delete', so anything removed from the DESTDIR
will be purged from the public web root.

Glen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-doc/attachments/20140218/10fc7808/attachment.sig>


More information about the freebsd-doc mailing list