On Thu, 21 Jun 2012 15:07:58 +0200 Riccardo Murri <riccardo.mu...@uzh.ch> 
wrote: 

RM> On Thu, Jun 21, 2012 at 3:02 PM, Ted Zlatanov <t...@lifelogs.com> wrote:
>> On Thu, 21 Jun 2012 14:17:53 +0200 Riccardo Murri <riccardo.mu...@uzh.ch> 
>> wrote:
>> 
RM> Would it be sensible to add a command-line switch to `cf-promises` to
RM> force update of `masterfiles/cf_promises_validated` ?
>> 
>> Would it work to just say "cf-promises ... && touch 
>> masterfiles/cf_promises_validated"?

RM> Thanks for the suggestion!

RM> "cf_promises_validated" seems to contain the date of the last
RM> successful validation, so maybe this one instead?

RM>         cf-promises ... && (date +'%a %b %d %H:%M:%S %Y' >
RM> masterfiles/cf_promises_validated)

RM> (BTW, it seems that the default contents of `cf_promises_validated`
RM> contain local time but without the time zone specification -- that's
RM> why I added the format string above.)

I don't know if the timestamp is necessary, sorry.  Try it with the
timestamp and without it :)

I would have used UTC in an ISO string with the timezone, or simply an
epoch timestamp.  But that's all academic if the file contents don't
matter.

Ted
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to