[packages/letsencrypt.sh] Use provided variables.

arekm arekm at pld-linux.org
Mon Aug 1 14:23:57 CEST 2016


commit f06d75cc5ed4c431444d5d85a09267a7a62e8059
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Aug 1 14:23:53 2016 +0200

    Use provided variables.

 hook.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/hook.sh b/hook.sh
index c54d088..66975c3 100755
--- a/hook.sh
+++ b/hook.sh
@@ -10,15 +10,15 @@ deploy_cert)
 	TIMESTAMP="$7"
 	if [ -x /usr/sbin/lighttpd -a -f /etc/lighttpd/server.pem ]; then
 		echo " + Hook: Overwritting /etc/lighttpd/server.pem and reloading lighttpd..."
-		cat "/etc/webapps/letsencrypt.sh/certs/${DOMAIN}/{fullchain,privkey}.pem" > /etc/lighttpd/server.pem
+		cat "$FULLCHAINCERT" "$PRIVKEY" > /etc/lighttpd/server.pem
 		/sbin/service lighttpd reload
 	fi
 	if [ -f /etc/nginx/server.pem -a -f /etc/nginx/server.key ]; then
 		nginx="nginx-standard"
 		[ -x /etc/rc.d/init.d/nginx-light ] && nginx="nginx-light"
 		echo " + Hook: Overwritting /etc/nginx/server.{pem,key} and reloading nginx..."
-		cat "/etc/webapps/letsencrypt.sh/certs/${DOMAIN}/fullchain.pem" > /etc/nginx/server.pem
-		cat "/etc/webapps/letsencrypt.sh/certs/${DOMAIN}/privkey.pem" > /etc/nginx/server.key
+		cat "$FULLCHAINCERT" > /etc/nginx/server.pem
+		cat "$PRIVKEY" > /etc/nginx/server.key
 		/sbin/service "$nginx" reload
 	fi
 	if [ -x /etc/rc.d/init.d/httpd ]; then
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/letsencrypt.sh.git/commitdiff/f06d75cc5ed4c431444d5d85a09267a7a62e8059



More information about the pld-cvs-commit mailing list