Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Feb 2018 12:20:46 +0100
From:      Kurt Jaeger <lists@opsec.eu>
To:        "Janky Jay, III" <jankyj@unfs.us>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Problem with old files in freebsd-update/files
Message-ID:  <20180228112046.GV32429@home.opsec.eu>
In-Reply-To: <460fb9bb-bc39-a9dd-18f9-dd7e4b28cac1@unfs.us>
References:  <alpine.BSF.2.21.1802280641350.20297@aneurin.horsfall.org> <20180227203132.GU32429@home.opsec.eu> <460fb9bb-bc39-a9dd-18f9-dd7e4b28cac1@unfs.us>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi!

> > And if I want to clean them up, I do:
> > 
> > cd /var/db
> > mv freebsd-update fbsd-up-old
> > mkdir freebsd-update
> > chmod 700 freebsd-update
> > rm -rf fbsd-up-old
> 
> 	Out of curiosity, why not just:
> 
> ~ # rm -rf /var/db/freebsd-update/*
> 
> 	Is there a reason you're moving the directory and creating a new, empty
> one?

Sometimes, depending on the storage media below, it takes time
to remove the old directory. So it's faster that way and both
the removal and the -update can be done in parallel.

-- 
pi@opsec.eu            +49 171 3101372                         2 years to go !



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180228112046.GV32429>