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 cat "/etc/webapps/letsencrypt.sh/certs/${DOMAIN}/{fullchain,privkey}.pem" > /etc/lighttpd/server.pem
14 /sbin/service lighttpd reload
16 if [ -f /etc/nginx/server.pem -a -f /etc/nginx/server.key ]; then
17 nginx="nginx-standard"
18 [ -x /etc/rc.d/init.d/nginx-light ] && nginx="nginx-light"
19 echo " + Hook: Overwritting /etc/nginx/server.{pem,key} and reloading nginx..."
20 cat "/etc/webapps/letsencrypt.sh/certs/${DOMAIN}/fullchain.pem" > /etc/nginx/server.pem
21 cat "/etc/webapps/letsencrypt.sh/certs/${DOMAIN}/privkey.pem" > /etc/nginx/server.key
22 /sbin/service "$nginx" reload
24 if [ -x /etc/rc.d/init.d/httpd ]; then
25 echo " + Hook: Reloading Apache..."
26 /sbin/service httpd graceful
32 echo " + Hook: $1: Nothing to do..."
35 echo " + Hook: $1: Nothing to do..."
38 echo " + Hook: $1: Nothing to do..."
41 echo " + Hook: $1: Nothing to do..."