]> git.pld-linux.org Git - packages/dehydrated.git/commitdiff
Use provided variables.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 1 Aug 2016 12:23:53 +0000 (14:23 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 1 Aug 2016 12:23:53 +0000 (14:23 +0200)
hook.sh

diff --git a/hook.sh b/hook.sh
index c54d0880a767735184adab02d9ec7626e10c34a2..66975c31d70076500778663216ace6b7c2257ff0 100755 (executable)
--- 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
This page took 0.038328 seconds and 4 git commands to generate.