Merge pull request #3 from gkosciolek/master

Compatibility fixes
This commit is contained in:
Elliot Saba 2018-08-22 14:07:31 -07:00 committed by GitHub
commit 467db4f64f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ error() {
parse_domains() {
# For each configuration file in /etc/nginx/conf.d/*.conf*
for conf_file in /etc/nginx/conf.d/*.conf*; do
sed -n -e 's&^\s*ssl_certificate_key\s*\/etc/letsencrypt/live/\(.*\)/privkey.pem;&\1&p' $conf_file | xargs echo | tr ' ' ','
sed -n -e 's&^\s*ssl_certificate_key\s*\/etc/letsencrypt/live/\(.*\)/privkey.pem;&\1&p' $conf_file | xargs echo
done
}
@ -60,6 +60,6 @@ auto_enable_configs() {
get_certificate() {
echo "Getting certificate for domain $1 on behalf of user $2"
certbot certonly --agree-tos --keep -n --text --email $2 --server \
https://acme-v02.api.letsencrypt.org/directory -d \*.$1 -d $1 --http-01-port 1337 \
https://acme-v02.api.letsencrypt.org/directory -d $1 --http-01-port 1337 \
--standalone --standalone-supported-challenges http-01 --debug
}