Commit 9c6e3032 authored by Vitaly Lipatov's avatar Vitaly Lipatov

improve nginx-le.sh

parent fa6d162b
#!/bin/sh -x #!/bin/sh -x
DOMAIN=$1 DOMAIN=$1
shift
[ -n "$DOMAIN" ] || exit [ -n "$DOMAIN" ] || exit
...@@ -11,7 +12,7 @@ DIR=/var/spool/nginx/tmp/client ...@@ -11,7 +12,7 @@ DIR=/var/spool/nginx/tmp/client
serv nginx reload || exit serv nginx reload || exit
letsencrypt certonly --webroot -w$DIR -d $@ || exit letsencrypt certonly --webroot -w$DIR -d $DOMAIN $@ || exit
NCONF=/etc/nginx/sites-enabled.d/$DOMAIN.conf NCONF=/etc/nginx/sites-enabled.d/$DOMAIN.conf
KEY=/etc/letsencrypt/live/$DOMAIN/privkey.pem KEY=/etc/letsencrypt/live/$DOMAIN/privkey.pem
......
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