I have a script that uses certbot certonly to request certificates, then copy/deploy them. Since the path to the certificates isn’t always /etc/letsencrypt/live/$domain, but can have appended -0001, etc. I’d need to get this path from certbot. I could parse the output of certbot certonly
or certbot certificates
but I was wondering if there was an easier way, something like an environment variable such as the one that certbot passes with --deploy-hook.
Thanks