Commit 4a5fe594 authored by Vitaly Lipatov's avatar Vitaly Lipatov Committed by Vitaly Lipatov

nginx-le.sh: add other nginx tmp support

parent 8e2e7469
...@@ -6,6 +6,7 @@ shift ...@@ -6,6 +6,7 @@ shift
[ -n "$DOMAIN" ] || exit [ -n "$DOMAIN" ] || exit
DIR=/var/spool/nginx/tmp/client DIR=/var/spool/nginx/tmp/client
[ -d "$DIR" ] || DIR=/var/lib/nginx/tmp/client
# add # add
# include include/letsencrypt.conf; # include include/letsencrypt.conf;
...@@ -19,6 +20,7 @@ KEY=/etc/letsencrypt/live/$DOMAIN/privkey.pem ...@@ -19,6 +20,7 @@ KEY=/etc/letsencrypt/live/$DOMAIN/privkey.pem
PEM=/etc/letsencrypt/live/$DOMAIN/fullchain.pem PEM=/etc/letsencrypt/live/$DOMAIN/fullchain.pem
CHAIN=/etc/letsencrypt/live/$DOMAIN/chain.pem CHAIN=/etc/letsencrypt/live/$DOMAIN/chain.pem
# TODO: replace subst
# TODO: add these lines # TODO: add these lines
SP="[ ]" SP="[ ]"
subst "s|\(ssl_certificate$SP\)\($SP*\).*|\1\2$PEM;|g" $NCONF subst "s|\(ssl_certificate$SP\)\($SP*\).*|\1\2$PEM;|g" $NCONF
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment