Commit 2b11307f authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix nginx-le script

parent 77799015
......@@ -9,7 +9,7 @@ DIR=/var/spool/nginx/tmp/client
# add
# include include/letsencrypt.conf;
serv nginx reload
serv nginx reload || exit
letsencrypt certonly --webroot -w$DIR -d $DOMAIN || exit
......@@ -20,4 +20,4 @@ SP="[ ]"
subst "s|\(ssl_certificate$SP\)\($SP*\).*|\1\2$PEM;|g" $NCONF
subst "s|\(ssl_certificate_key$SP\)\($SP*\).*|\1\2$KEY;|g" $NCONF
serv nginx reload
serv nginx reload || exit
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