Update letsencrypt.sh

This commit is contained in:
FusionPBX 2018-07-21 14:00:40 -06:00 committed by GitHub
parent 2551bc4768
commit 18376c5b41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 4 deletions

View File

@ -63,9 +63,14 @@ if [ .$wilcard_domain = ."true" ]; then
fi fi
#create an alias when using wildcard dns #create an alias when using wildcard dns
#if [ .$wilcard_domain = ."true" ]; then if [ .$wilcard_domain = ."true" ]; then
# echo "*.$domain_name > $domain_name" > /usr/local/etc/dehydrated/domains.txt echo "*.$domain_name > $domain_name" > /usr/local/etc/dehydrated/domains.txt
#fi fi
#add the domain_name to domains.txt
if [ .$wilcard_domain = ."false" ]; then
echo "$domain_name" > /usr/local/etc/dehydrated/domains.txt
fi
#wildcard domain #wildcard domain
if [ .$wilcard_domain = ."true" ]; then if [ .$wilcard_domain = ."true" ]; then
@ -74,7 +79,7 @@ fi
#single domain #single domain
if [ .$wilcard_domain = ."false" ]; then if [ .$wilcard_domain = ."false" ]; then
dehydrated --cron --domain $domain_name --config /usr/local/etc/dehydrated/config --out /usr/local/etc/dehydrated/certs --challenge dns-01 --hook /usr/local/etc/dehydrated/hook.sh dehydrated --cron --domain $domain_name --config /usr/local/etc/dehydrated/config --out /usr/local/etc/dehydrated/certs --challenge http-01
fi fi
#remove the old backups #remove the old backups