[packages/dehydrated] hook: detect haproxy
glen
glen at pld-linux.org
Mon Jan 2 16:59:01 CET 2017
commit 69865db87f32c194078d2d8c700d196bfe172275
Author: Elan Ruusamäe <glen at 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
More information about the pld-cvs-commit
mailing list