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
a102d775
Commit
a102d775
authored
May 13, 2020
by
Maarten den Braber
Browse files
Formatting issues
parent
65e82b03
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_transip.sh
View file @
a102d775
...
@@ -58,7 +58,7 @@ _get_root() {
...
@@ -58,7 +58,7 @@ _get_root() {
_domain
=
"
$h
"
_domain
=
"
$h
"
if
_transip_rest GET
"domains/
$h
/dns"
&&
_contains
"
$response
"
"dnsEntries"
;
then
if
_transip_rest GET
"domains/
$h
/dns"
&&
_contains
"
$response
"
"dnsEntries"
;
then
return
0
return
0
fi
fi
p
=
$i
p
=
$i
...
@@ -140,10 +140,10 @@ _transip_setup() {
...
@@ -140,10 +140,10 @@ _transip_setup() {
_saveaccountconf_mutable TRANSIP_Key_File
"
$TRANSIP_Key_File
"
_saveaccountconf_mutable TRANSIP_Key_File
"
$TRANSIP_Key_File
"
if
[
-f
"
$TRANSIP_Key_File
"
]
;
then
if
[
-f
"
$TRANSIP_Key_File
"
]
;
then
if
!
grep
"BEGIN PRIVATE KEY"
"
$TRANSIP_Key_File
"
>
/dev/null 2>&1
;
then
if
!
grep
"BEGIN PRIVATE KEY"
"
$TRANSIP_Key_File
"
>
/dev/null 2>&1
;
then
_err
"Key file doesn't seem to be a valid key:
${
TRANSIP_Key_File
}
"
_err
"Key file doesn't seem to be a valid key:
${
TRANSIP_Key_File
}
"
return
1
return
1
fi
fi
else
else
_err
"Can't read private key file:
${
TRANSIP_Key_File
}
"
_err
"Can't read private key file:
${
TRANSIP_Key_File
}
"
return
1
return
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