11 if [ -x /usr/sbin/lighttpd -a -f /etc/lighttpd/server.pem ]; then
12 echo " + Hook: Overwritting /etc/lighttpd/server.pem and reloading lighttpd..."
13 cp -a /etc/lighttpd/server.pem /etc/lighttpd/server.pem.letsencrypt~
14 cat "$FULLCHAINCERT" "$PRIVKEY" > /etc/lighttpd/server.pem
15 /sbin/service lighttpd reload
17 if [ -f /etc/nginx/server.crt -a -f /etc/nginx/server.key ]; then
18 echo " + Hook: Overwritting /etc/nginx/server.{crt,key} and reloading nginx..."
19 cp -a /etc/nginx/server.crt /etc/nginx/server.crt.letsencrypt~
20 cp -a /etc/nginx/server.crt /etc/nginx/server.key.letsencrypt~
21 cat "$FULLCHAINCERT" > /etc/nginx/server.crt
22 cat "$PRIVKEY" > /etc/nginx/server.key
23 /sbin/service nginx reload
25 if [ -x /etc/rc.d/init.d/httpd ]; then
26 echo " + Hook: Reloading Apache..."
27 /sbin/service httpd graceful
29 if [ -x /usr/sbin/haproxy -a -f /etc/haproxy/server.pem ]; then
30 echo " + Hook: Overwritting /etc/haproxy/server.pem and restarting haproxy..."
31 cat "$FULLCHAINCERT" "$PRIVKEY" > /etc/haproxy/server.pem
32 /sbin/service haproxy restart
38 echo " + Hook: $1: Nothing to do..."
41 echo " + Hook: $1: Nothing to do..."
44 echo " + Hook: $1: Nothing to do..."
47 echo " + Hook: $1: Nothing to do..."