Update letsencrypt.sh

This commit is contained in:
FusionPBX 2018-03-21 11:50:04 -06:00 committed by GitHub
parent 6b223fd360
commit 527fdfaaaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -45,8 +45,16 @@ mkdir -p /etc/nginx/ssl
dehydrated --register --accept-terms
#wildcard domain
dehydrated --cron --challenge dns-01 --hook /etc/dehydrated/hook.sh
if [ .$wilcard_domain_name = ."y" ]; then
dehydrated --cron --challenge dns-01 --hook /etc/dehydrated/hook.sh
fi
#single domain
if [ .$wilcard_domain_name = ."n" ]; then
dehydrated --cron --domain $domain_name --challenge dns-01 --hook /etc/dehydrated/hook.sh
fi
#challenge methods http-01
#dehydrated --cron --challenge http-01
cd /usr/src/dehydrated