mirror of
https://github.com/xdtianyu/scripts.git
synced 2025-09-25 21:49:18 +08:00
Update le-cloudxns.sh
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
export CONFIG=$1
|
||||||
|
|
||||||
if [ ! -f "$CONFIG" ];then
|
if [ ! -f "$CONFIG" ];then
|
||||||
echo "ERROR, CONFIG NOT EXIST."
|
echo "ERROR, CONFIG NOT EXIST."
|
||||||
exit 1
|
exit 1
|
||||||
@@ -7,6 +9,21 @@ fi
|
|||||||
|
|
||||||
. $CONFIG
|
. $CONFIG
|
||||||
|
|
||||||
echo $DOMAINS > domains.txt
|
echo "$CERT_DOMAINS" > domains.txt
|
||||||
|
|
||||||
|
if [ ! -f "cloudxns.sh" ];then
|
||||||
|
wget https://github.com/xdtianyu/scripts/raw/master/le-dns/cloudxns.sh -O cloudxns.sh -o /dev/null
|
||||||
|
chmod +x cloudxns.sh
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -f "cloudxns-hook.sh" ];then
|
||||||
|
wget https://github.com/xdtianyu/scripts/raw/master/le-dns/cloudxns-hook.sh -O cloudxns-hook.sh -o /dev/null
|
||||||
|
chmod +x cloudxns-hook.sh
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -f "letsencrypt.sh" ];then
|
||||||
|
wget https://github.com/lukas2511/letsencrypt.sh/raw/master/letsencrypt.sh -O letsencrypt.sh -o /dev/null
|
||||||
|
chmod +x letsencrypt.sh
|
||||||
|
fi
|
||||||
|
|
||||||
./letsencrypt.sh -c -k ./cloudxns-hook.sh -t dns-01
|
./letsencrypt.sh -c -k ./cloudxns-hook.sh -t dns-01
|
||||||
|
Reference in New Issue
Block a user