forked from norman/fusionpbx-install.sh-github-mirror
Update letsencrypt.sh
This commit is contained in:
4
debian/resources/letsencrypt.sh
vendored
4
debian/resources/letsencrypt.sh
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user