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
02f6d4cb
Commit
02f6d4cb
authored
Feb 15, 2019
by
Augustin-FL
Browse files
use read/saveconf_mutable, not readconf from OVH
parent
ec5fad43
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_online.sh
View file @
02f6d4cb
...
...
@@ -92,14 +92,18 @@ dns_online_rm() {
#################### Private functions below ##################################
_online_check_config
()
{
ONLINE_API_KEY
=
"
${
CF_Key
:-
$(
_readaccountconf_mutable ONLINE_API_KEY
)
}
"
if
[
-z
"
$ONLINE_API_KEY
"
]
;
then
_err
"No API key specified for Online API."
_err
"Create your key and export it as ONLINE_API_KEY"
return
1
fi
if
[
!
_online_rest GET
"domain/"
]
;
then
_err
"Invalid API key specified for Online API."
return
1
fi
_saveaccountconf ONLINE_API_KEY
"
$ONLINE_API_KEY
"
_saveaccountconf
_mutable
ONLINE_API_KEY
"
$ONLINE_API_KEY
"
return
0
}
...
...
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