From 30b951d8c1a66a276c609bd1f7ceaff1f6dd6ec2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 7 Dec 2018 12:39:38 +0200 Subject: [PATCH] hook: implement certs copy for apache hook --- hook-dns-01.sh | 4 +++- hook.sh | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/hook-dns-01.sh b/hook-dns-01.sh index 69573e6..6945dfd 100755 --- a/hook-dns-01.sh +++ b/hook-dns-01.sh @@ -49,7 +49,9 @@ httpd_reload() { return fi - echo " + Hook: Reloading Apache..." + echo " + Hook: Reloading Apache 2..." + atomic_concat /etc/httpd/ssl/server.crt "$FULLCHAINCERT" + atomic_concat /etc/httpd/ssl/server.key "$PRIVKEY" /sbin/service httpd graceful } diff --git a/hook.sh b/hook.sh index d5387a4..3c4972a 100755 --- a/hook.sh +++ b/hook.sh @@ -46,11 +46,12 @@ httpd_reload() { return fi - echo " + Hook: Reloading Apache..." + echo " + Hook: Reloading Apache 2..." + atomic_concat /etc/httpd/ssl/server.crt "$FULLCHAINCERT" + atomic_concat /etc/httpd/ssl/server.key "$PRIVKEY" /sbin/service httpd graceful } - case "$1" in deploy_cert) DOMAIN="$2" -- 2.44.0