Dan Langille

Results 97 comments of Dan Langille

Or what about an entry in `/usr/local/etc/cron.d/` instead? The script located there can have a `MAILTO` - any results from the cronjob is mailed to that address.

https://github.com/dlangille/anvil/blob/master/cert-shifter#L41 is the culprit I think. If we have another check, for pulling `_ecc` off the directory name....

1st test ``` [dan@empty:~] $ /bin/sh $ dir=/var/db/acme/certs/example.com_ecc/ $ foo=$(basename $dir) $ echo $foo example.com_ecc $ ECC_SUFFX="_ecc" $ echo $ECC_SUFFX _ecc $ bar=${foo%"$ECC_SUFFX"} $ echo $bar example.com $ ```

2nd test ``` [dan@empty:~] $ /bin/sh $ dir=/var/db/acme/certs/example.com/ $ foo=$(basename $dir) $ echo $foo example.com $ ECC_SUFFX="_ecc" $ echo $ECC_SUFFX _ecc $ bar=${foo%"$ECC_SUFFX"} $ echo $bar example.com $ ```

I created a new branch with the changes. I have not tested them. Are you comfortable testing them at your location?

> Evening. Yes, I will get the branch an test it within next days and will let you know. Any news?

That code change is working for you?

The current solution to this problem: remove the errant cert from `/var/db/anvil`

This hit me again today and I spent about 20 minutes trying to find my configuration error. :/