diff options
author | June McEnroe <june@causal.agency> | 2019-11-06 16:13:08 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-11-06 16:13:08 -0500 |
commit | f3b13a3f1fde68181db1952781962d01ebda40cd (patch) | |
tree | d86155322443781ee3ed2bc9c6c5335868b51d74 /bounce.c | |
parent | Change license to GPLv3 (diff) | |
download | pounce-f3b13a3f1fde68181db1952781962d01ebda40cd.tar.gz pounce-f3b13a3f1fde68181db1952781962d01ebda40cd.zip |
Define one CERTBOT_PATH rather than two format strings
Diffstat (limited to '')
-rw-r--r-- | bounce.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bounce.c b/bounce.c index a381db3..93afbb4 100644 --- a/bounce.c +++ b/bounce.c @@ -303,10 +303,16 @@ int main(int argc, char *argv[]) { } } if (!certPath[0]) { - snprintf(certPath, sizeof(certPath), DEFAULT_CERT_PATH, bindHost); + snprintf( + certPath, sizeof(certPath), CERTBOT_PATH "/live/%s/fullchain.pem", + bindHost + ); } if (!privPath[0]) { - snprintf(privPath, sizeof(privPath), DEFAULT_PRIV_PATH, bindHost); + snprintf( + privPath, sizeof(privPath), CERTBOT_PATH "/live/%s/privkey.pem", + bindHost + ); } if (!host) errx(EX_USAGE, "host required"); |