From df72c3b07a371575f6d1ac22caaa70f0d6c01c87 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 25 Jul 2018 01:12:25 -0500 Subject: [PATCH] Update letsencrypt.sh --- debian/resources/letsencrypt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/resources/letsencrypt.sh b/debian/resources/letsencrypt.sh index 78e1125..e73f85f 100755 --- a/debian/resources/letsencrypt.sh +++ b/debian/resources/letsencrypt.sh @@ -44,7 +44,7 @@ fi #manual dns hook if [ .$wilcard_domain = ."true" ]; then - if [ ! -f /usr/local/etc/dehydrated/hook.sh]; then + if [ ! -f /etc/dehydrated/hook.sh]; then cd /usr/src git clone https://github.com/owhen/dns-01-manual.git cd /usr/src/dns-01-manual/ @@ -61,7 +61,7 @@ cp docs/examples/config /etc/dehydrated #update the dehydrated config #sed "s#CONTACT_EMAIL=#CONTACT_EMAIL=$email_address" -i /etc/dehydrated/config sed -i' ' -e s:'#CONTACT_EMAIL=":CONTACT_EMAIL=$email_address:' /etc/dehydrated/config -sed -i' ' -e s:'#WELLKNOWN="/var/www/dehydrated":WELLKNOWN="/usr/local/www/dehydrated":' /etc/dehydrated/config +sed -i' ' -e s:'#WELLKNOWN="/var/www/dehydrated":WELLKNOWN="/var/www/dehydrated":' /etc/dehydrated/config #accept the terms dehydrated --register --accept-terms --config /etc/dehydrated/config