mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-11 05:52:43 +00:00
fix: check if devil
command exists, as requested by @Neilpang
This commit is contained in:
parent
3fa6fb5731
commit
e5475b7e3e
@ -27,6 +27,11 @@ mydevil_deploy() {
|
||||
_debug _cca "$_cca"
|
||||
_debug _cfullchain "$_cfullchain"
|
||||
|
||||
if ! _exists "devil" ; then
|
||||
_err "Could not find 'devil' command."
|
||||
return 1
|
||||
fi
|
||||
|
||||
ip=$(mydevil_get_ip "$_cdomain")
|
||||
if [ -z "$ip" ]; then
|
||||
_err "Could not find IP for domain $_cdomain."
|
||||
|
@ -18,6 +18,11 @@ dns_mydevil_add() {
|
||||
txtvalue=$2
|
||||
domain=""
|
||||
|
||||
if ! _exists "devil" ; then
|
||||
_err "Could not find 'devil' command."
|
||||
return 1
|
||||
fi
|
||||
|
||||
_info "Using mydevil"
|
||||
|
||||
domain=$(mydevil_get_domain "$fulldomain")
|
||||
@ -48,6 +53,11 @@ dns_mydevil_rm() {
|
||||
txtvalue=$2
|
||||
domain=""
|
||||
|
||||
if ! _exists "devil" ; then
|
||||
_err "Could not find 'devil' command."
|
||||
return 1
|
||||
fi
|
||||
|
||||
_info "Using mydevil"
|
||||
|
||||
domain=$(mydevil_get_domain "$fulldomain")
|
||||
|
Loading…
x
Reference in New Issue
Block a user