Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
f5850d0c
Commit
f5850d0c
authored
Mar 08, 2019
by
neilpang
Browse files
fix format
parent
855eb835
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_cn.sh
View file @
f5850d0c
...
@@ -7,7 +7,7 @@ CN_API="https://beta.api.core-networks.de"
...
@@ -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(){
...
@@ -50,7 +50,7 @@ dns_cn_add(){
fi
fi
}
}
dns_cn_rm
(){
dns_cn_rm
()
{
fulldomain
=
$1
fulldomain
=
$1
txtvalue
=
$2
txtvalue
=
$2
...
@@ -80,7 +80,6 @@ dns_cn_rm(){
...
@@ -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() {
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment