mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 13:11:41 +00:00
fix format
This commit is contained in:
parent
855eb8355a
commit
f5850d0c08
@ -7,7 +7,7 @@ CN_API="https://beta.api.core-networks.de"
|
|||||||
|
|
||||||
######## Public functions #####################
|
######## Public functions #####################
|
||||||
|
|
||||||
dns_cn_add(){
|
dns_cn_add() {
|
||||||
fulldomain=$1
|
fulldomain=$1
|
||||||
txtvalue=$2
|
txtvalue=$2
|
||||||
|
|
||||||
@ -50,7 +50,7 @@ dns_cn_add(){
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
dns_cn_rm(){
|
dns_cn_rm() {
|
||||||
fulldomain=$1
|
fulldomain=$1
|
||||||
txtvalue=$2
|
txtvalue=$2
|
||||||
|
|
||||||
@ -71,7 +71,7 @@ dns_cn_rm(){
|
|||||||
_debug curData is "$curData"
|
_debug curData is "$curData"
|
||||||
|
|
||||||
_info "commiting changes"
|
_info "commiting changes"
|
||||||
if ! _cn_commit; then
|
if ! _cn_commit; then
|
||||||
_err "commiting changes failed"
|
_err "commiting changes failed"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
@ -80,7 +80,6 @@ dns_cn_rm(){
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
################### Private functions below ##################################
|
################### Private functions below ##################################
|
||||||
_cn_login() {
|
_cn_login() {
|
||||||
CN_User="${CN_User:-$(_readaccountconf_mutable CN_User)}"
|
CN_User="${CN_User:-$(_readaccountconf_mutable CN_User)}"
|
||||||
@ -114,12 +113,12 @@ _cn_login() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Commit changes
|
# Commit changes
|
||||||
_cn_commit(){
|
_cn_commit() {
|
||||||
_info "Commiting changes"
|
_info "Commiting changes"
|
||||||
_post "" "${CN_API}/dnszones/$h/records/commit"
|
_post "" "${CN_API}/dnszones/$h/records/commit"
|
||||||
}
|
}
|
||||||
|
|
||||||
_cn_get_root(){
|
_cn_get_root() {
|
||||||
domain=$1
|
domain=$1
|
||||||
i=2
|
i=2
|
||||||
p=1
|
p=1
|
||||||
|
Loading…
Reference in New Issue
Block a user