Browse Source

save rcode0 url only if not default

pull/2489/head
Michael Braunoeder 6 years ago
parent
commit
bc044754bd
  1. 7
      dnsapi/dns_rcode0.sh

7
dnsapi/dns_rcode0.sh

@ -40,10 +40,13 @@ dns_rcode0_add() {
RCODE0_TTL="$DEFAULT_RCODE0_TTL" RCODE0_TTL="$DEFAULT_RCODE0_TTL"
fi fi
#save the api addr and key to the account conf file.
_saveaccountconf_mutable RCODE0_URL "$RCODE0_URL"
#save the token to the account conf file.
_saveaccountconf_mutable RCODE0_API_TOKEN "$RCODE0_API_TOKEN" _saveaccountconf_mutable RCODE0_API_TOKEN "$RCODE0_API_TOKEN"
if [ "$RCODE0_URL" != "$DEFAULT_RCODE0_URL" ]; then
_saveaccountconf_mutable RCODE0_URL "$RCODE0_URL"
fi
if [ "$RCODE0_TTL" != "$DEFAULT_RCODE0_TTL" ]; then if [ "$RCODE0_TTL" != "$DEFAULT_RCODE0_TTL" ]; then
_saveaccountconf_mutable RCODE0_TTL "$RCODE0_TTL" _saveaccountconf_mutable RCODE0_TTL "$RCODE0_TTL"
fi fi

Loading…
Cancel
Save