]> git.pld-linux.org Git - packages/dehydrated.git/commitdiff
hook: implement certs copy for apache hook
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 7 Dec 2018 10:39:38 +0000 (12:39 +0200)
committerElan Ruusamäe <glen@pld-linux.org>
Fri, 7 Dec 2018 10:39:38 +0000 (12:39 +0200)
hook-dns-01.sh
hook.sh

index 69573e6f571a322f1c0fda592006ba8e92fcbac2..6945dfd23787acae1ccc98f0e72bf020c0285003 100755 (executable)
@@ -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 d5387a4249566e01db6624c3bbf1f69dace4fb91..3c4972af491de61163735ef40106871376f3ee38 100755 (executable)
--- 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"
This page took 0.184189 seconds and 4 git commands to generate.