mirror of
https://github.com/xdtianyu/scripts.git
synced 2025-08-11 22:40:59 +08:00
add le-dns/dnspod
This commit is contained in:
18
le-dns/dnspod-hook.sh
Executable file
18
le-dns/dnspod-hook.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
function deploy_challenge {
|
||||
local DOMAIN="${1}" TOKEN_FILENAME="${2}" TOKEN_VALUE="${3}"
|
||||
echo $DOMAIN $TOKEN_FILENAME $TOKEN_VALUE
|
||||
./dnspod.sh ./dnspod.conf $DOMAIN $TOKEN_VALUE
|
||||
sleep 5
|
||||
}
|
||||
|
||||
function clean_challenge {
|
||||
local DOMAIN="${1}" TOKEN_FILENAME="${2}" TOKEN_VALUE="${3}"
|
||||
}
|
||||
|
||||
function deploy_cert {
|
||||
local DOMAIN="${1}" KEYFILE="${2}" CERTFILE="${3}" CHAINFILE="${4}"
|
||||
}
|
||||
|
||||
HANDLER=$1; shift; $HANDLER $@
|
Reference in New Issue
Block a user