]> git.pld-linux.org Git - packages/dehydrated.git/commitdiff
hook: detect haproxy
authorElan Ruusamäe <glen@delfi.ee>
Mon, 2 Jan 2017 15:58:42 +0000 (17:58 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 2 Jan 2017 15:58:42 +0000 (17:58 +0200)
hook.sh

diff --git a/hook.sh b/hook.sh
index cc44c4e93c02f60575ebb5ff5b6c190d55e20c45..540b10ad125a3cfa718a89afec18701715ea092e 100755 (executable)
--- 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"
This page took 0.046235 seconds and 4 git commands to generate.