|
@ -32,7 +32,8 @@ dns_cf_add() { |
|
|
else |
|
|
else |
|
|
_saveaccountconf_mutable CF_Token "$CF_Token" |
|
|
_saveaccountconf_mutable CF_Token "$CF_Token" |
|
|
_saveaccountconf_mutable CF_Account_ID "$CF_Account_ID" |
|
|
_saveaccountconf_mutable CF_Account_ID "$CF_Account_ID" |
|
|
_saveaccountconf_mutable CF_Zone_ID "$CF_Zone_ID" |
|
|
|
|
|
|
|
|
_clearaccountconf_mutable CF_Zone_ID |
|
|
|
|
|
_clearaccountconf CF_Zone_ID |
|
|
fi |
|
|
fi |
|
|
else |
|
|
else |
|
|
if [ -z "$CF_Key" ] || [ -z "$CF_Email" ]; then |
|
|
if [ -z "$CF_Key" ] || [ -z "$CF_Email" ]; then |
|
@ -51,6 +52,14 @@ dns_cf_add() { |
|
|
#save the api key and email to the account conf file. |
|
|
#save the api key and email to the account conf file. |
|
|
_saveaccountconf_mutable CF_Key "$CF_Key" |
|
|
_saveaccountconf_mutable CF_Key "$CF_Key" |
|
|
_saveaccountconf_mutable CF_Email "$CF_Email" |
|
|
_saveaccountconf_mutable CF_Email "$CF_Email" |
|
|
|
|
|
|
|
|
|
|
|
_clearaccountconf_mutable CF_Token |
|
|
|
|
|
_clearaccountconf_mutable CF_Account_ID |
|
|
|
|
|
_clearaccountconf_mutable CF_Zone_ID |
|
|
|
|
|
_clearaccountconf CF_Token |
|
|
|
|
|
_clearaccountconf CF_Account_ID |
|
|
|
|
|
_clearaccountconf CF_Zone_ID |
|
|
|
|
|
|
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
_debug "First detect the root zone" |
|
|
_debug "First detect the root zone" |
|
|