3 # concat file atomic way
9 cp -f $file $file.dehydrated~
14 if [ ! -x /usr/sbin/lighttpd ] || [ ! -f /etc/lighttpd/server.pem ]; then
18 echo " + Hook: Overwritting /etc/lighttpd/server.pem and reloading lighttpd..."
19 atomic_concat /etc/lighttpd/server.pem "$FULLCHAINCERT" "$PRIVKEY"
20 /sbin/service lighttpd reload
24 if [ ! -x /usr/sbin/haproxy ] || [ ! -f /etc/haproxy/server.pem ]; then
28 echo " + Hook: Overwritting /etc/haproxy/server.pem and restarting haproxy..."
29 atomic_concat /etc/haproxy/server.pem "$FULLCHAINCERT" "$PRIVKEY"
30 /sbin/service haproxy reload
34 if [ ! -f /etc/nginx/server.crt ] || [ ! -f /etc/nginx/server.key ]; then
38 echo " + Hook: Overwritting /etc/nginx/server.{crt,key} and reloading nginx..."
39 atomic_concat /etc/nginx/server.crt "$FULLCHAINCERT"
40 atomic_concat /etc/nginx/server.key "$PRIVKEY"
41 /sbin/service nginx reload
45 if [ ! -x /etc/rc.d/init.d/httpd ]; then
49 echo " + Hook: Reloading Apache..."
50 /sbin/service httpd graceful
71 echo " + Hook: $1: Nothing to do..."
74 echo " + Hook: $1: Nothing to do..."
77 echo " + Hook: $1: Nothing to do..."
80 echo " + Hook: $1: Nothing to do..."