[blfs-support] remove-expired-certs.sh

Fernando de Oliveira famobr at yahoo.com.br
Sun Feb 12 05:52:51 PST 2012


--- Em sáb, 11/2/12, Bruce Dubbs <bruce.dubbs at gmail.com> escreveu:

> De: Bruce Dubbs <bruce.dubbs at gmail.com>
> Assunto: Re: [blfs-support] remove-expired-certs.sh
> Para: "BLFS Support List" <blfs-support at linuxfromscratch.org>
> Data: Sábado, 11 de Fevereiro de 2012, 14:24
> Fernando de Oliveira wrote:
> > Hi,
> > 
> > Running this script I obtain (LFS 6.5, 6.7, small
> difference in 6.8):
> > 
> > $ remove-expired-certs.sh
> > date: data inv�lida "Jul 31 12:31:40 2038 GMT"
> > /bin/remove-expired-certs.sh: line 18: [: -lt: esperado
> operador un�rio
> 
> That comes from the line:
> 
> if [ $( date -d "${date}" +%Y%m%d ) -lt ${today} ]; then
> 
> Where 'date' can't handle values after 2038.  I thought
> we fixed that, 
> but evidently didn't.  I'll try to get that fixed later
> today.  I don't 
> recall the solution right now.
> 
>    -- Bruce

Hi, Bruce,

The script I am running, after the suggestions is attached.

Later, I will try the new version in BLFS - Version 2012-02-12.

Thanks for the attention.

[]s,
Fernando
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove-expired-certs.sh
Type: application/octet-stream
Size: 731 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/blfs-support/attachments/20120212/205d06d7/attachment.obj>


More information about the blfs-support mailing list