Commit 5c941476 authored by Augustin-FL's avatar Augustin-FL
Browse files

use read/saveconf_mutable, not readconf from OVH

parent 02f6d4cb
...@@ -92,13 +92,13 @@ dns_online_rm() { ...@@ -92,13 +92,13 @@ dns_online_rm() {
#################### Private functions below ################################## #################### Private functions below ##################################
_online_check_config() { _online_check_config() {
ONLINE_API_KEY="${CF_Key:-$(_readaccountconf_mutable ONLINE_API_KEY)}" ONLINE_API_KEY="${ONLINE_API_KEY:-$(_readaccountconf_mutable ONLINE_API_KEY)}"
if [ -z "$ONLINE_API_KEY" ]; then if [ -z "$ONLINE_API_KEY" ]; then
_err "No API key specified for Online API." _err "No API key specified for Online API."
_err "Create your key and export it as ONLINE_API_KEY" _err "Create your key and export it as ONLINE_API_KEY"
return 1 return 1
fi fi
if [ ! _online_rest GET "domain/" ]; then if ! _online_rest GET "domain/"; then
_err "Invalid API key specified for Online API." _err "Invalid API key specified for Online API."
return 1 return 1
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment