Update letsencrypt.sh
This commit is contained in:
parent
b5403fa888
commit
df72c3b07a
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue