Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
90e2064d
Commit
90e2064d
authored
May 31, 2020
by
StefanAbl
Browse files
first attempt to make travis happy
parent
943d419f
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_dynv6.sh
View file @
90e2064d
...
@@ -11,11 +11,28 @@ dns_dynv6_add() {
...
@@ -11,11 +11,28 @@ dns_dynv6_add() {
_info
"Using dynv6 api"
_info
"Using dynv6 api"
_debug fulldomain
"
$fulldomain
"
_debug fulldomain
"
$fulldomain
"
_debug txtvalue
"
$txtvalue
"
_debug txtvalue
"
$txtvalue
"
<<<<<<
< HEAD
_get_authentication
_get_authentication
if
[
"
$dynv6_token
"
]
;
then
if
[
"
$dynv6_token
"
]
;
then
_dns_dynv6_add_http
_dns_dynv6_add_http
return
$?
return
$?
=======
_get_keyfile
_info
"using keyfile
$dynv6_keyfile
"
_your_hosts
=
"
$(
ssh
-i
"
$dynv6_keyfile
"
api@dynv6.com hosts
)
"
if
!
_get_domain
"
$fulldomain
"
"
$_your_hosts
"
;
then
_err
"Host not found on your account"
return
1
fi
_debug
"found host on your account"
returnval
=
"
$(
ssh
-i
"
$dynv6_keyfile
"
api@dynv6.com hosts
\"
"
$_host
"
\"
records
set
\"
"
$_record
"
\"
txt data
\"
"
$txtvalue
"
\"
)
"
_debug
"Dynv6 returend this after record was added:
$returnval
"
if
_contains
"
$returnval
"
"created"
;
then
return
0
elif
_contains
"
$returnval
"
"updated"
;
then
return
0
>>>>>>>
first attempt to make travis happy
else
else
_info
"using key file
$dynv6_keyfile
"
_info
"using key file
$dynv6_keyfile
"
_your_hosts
=
"
$(
ssh
-i
"
$dynv6_keyfile
"
api@dynv6.com hosts
)
"
_your_hosts
=
"
$(
ssh
-i
"
$dynv6_keyfile
"
api@dynv6.com hosts
)
"
...
@@ -46,6 +63,7 @@ dns_dynv6_rm() {
...
@@ -46,6 +63,7 @@ dns_dynv6_rm() {
_info
"Using dynv6 API"
_info
"Using dynv6 API"
_debug fulldomain
"
$fulldomain
"
_debug fulldomain
"
$fulldomain
"
_debug txtvalue
"
$txtvalue
"
_debug txtvalue
"
$txtvalue
"
<<<<<<
< HEAD
_get_authentication
_get_authentication
if
[
"
$dynv6_token
"
]
;
then
if
[
"
$dynv6_token
"
]
;
then
_dns_dynv6_rm_http
_dns_dynv6_rm_http
...
@@ -61,6 +79,18 @@ dns_dynv6_rm() {
...
@@ -61,6 +79,18 @@ dns_dynv6_rm() {
_info
"
$(
ssh
-i
"
$dynv6_keyfile
"
api@dynv6.com hosts
"
\"
$_host
\"
"
records del
"
\"
$_record
\"
"
txt
)
"
_info
"
$(
ssh
-i
"
$dynv6_keyfile
"
api@dynv6.com hosts
"
\"
$_host
\"
"
records del
"
\"
$_record
\"
"
txt
)
"
return
0
return
0
fi
fi
=======
_get_keyfile
_info
"using keyfile
$dynv6_keyfile
"
_your_hosts
=
"
$(
ssh
-i
"
$dynv6_keyfile
"
api@dynv6.com hosts
)
"
if
!
_get_domain
"
$fulldomain
"
"
$_your_hosts
"
;
then
_err
"Host not found on your account"
return
1
fi
_debug
"found host on your account"
_info
"
$(
ssh
-i
"
$dynv6_keyfile
"
api@dynv6.com hosts
"
\"
$_host
\"
"
records del
"
\"
$_record
\"
"
txt
)
"
return
0
>>>>>>>
first attempt to make travis happy
}
}
#################### Private functions below ##################################
#################### Private functions below ##################################
#Usage: No Input required
#Usage: No Input required
...
...
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