I have set up a cron job to run agnos twice a day (just like certbot's cron), but the e-mails are looking a bit weird:
[2m2023-02-17T02:46:36.236696Z[0m [32m INFO[0m [2magnos[0m[2m:[0m Certificate chain found on disk, checking its validity
[2m2023-02-17T02:46:36.238873Z[0m [32m INFO[0m [2magnos[0m[2m:[0m No certificate in the chain requires renewal.
[2m2023-02-17T02:46:36.238896Z[0m [32m INFO[0m [2magnos[0m[2m:[0m Certificate chain found on disk, checking its validity
[2m2023-02-17T02:46:36.240869Z[0m [32m INFO[0m [2magnos[0m[2m:[0m No certificate in the chain requires renewal.
Proposal: agnos should only color its output when it is being run on a terminal. In bash, you could use test -t 1 to check for a terminal, for example (1 being file descriptor 1; 0 = stdin, 1 = stdout, 2 = stderr).
I have set up a cron job to run agnos twice a day (just like certbot's cron), but the e-mails are looking a bit weird:
Proposal: agnos should only color its output when it is being run on a terminal. In bash, you could use
test -t 1
to check for a terminal, for example (1
being file descriptor 1; 0 = stdin, 1 = stdout, 2 = stderr).