commit 69865db87f32c194078d2d8c700d196bfe172275
Author: Elan Ruusamäe <g...@delfi.ee>
Date:   Mon Jan 2 17:58:42 2017 +0200

    hook: detect haproxy

 hook.sh | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/hook.sh b/hook.sh
index cc44c4e..540b10a 100755
--- a/hook.sh
+++ b/hook.sh
@@ -26,6 +26,11 @@ deploy_cert)
                echo " + Hook: Reloading Apache..."
                /sbin/service httpd graceful
        fi
+       if [ -x /usr/sbin/haproxy -a -f /etc/haproxy/server.pem ]; then
+               echo " + Hook: Overwritting /etc/haproxy/server.pem and 
restarting haproxy..."
+               cat "$FULLCHAINCERT" "$PRIVKEY" > /etc/haproxy/server.pem
+               /sbin/service haproxy restart
+       fi
        ;;
 clean_challenge)
        CHALLENGE_TOKEN="$2"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dehydrated.git/commitdiff/69865db87f32c194078d2d8c700d196bfe172275

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to