This commit is contained in:
stbeldarborge 2024-09-02 15:41:55 +02:00
parent fcffe8beb9
commit 92a47aaac5
No known key found for this signature in database
GPG Key ID: E2B7D4D531A7A945

View File

@ -85,9 +85,9 @@ dns_azure_add() {
fi fi
if [ -z "$AZUREDNS_BEARERTOKEN" ]; then if [ -z "$AZUREDNS_BEARERTOKEN" ]; then
accesstoken=$(echo "$AZUREDNS_BEARERTOKEN" | sed "s/Bearer //g")
else
accesstoken=$(_azure_getaccess_token "$AZUREDNS_MANAGEDIDENTITY" "$AZUREDNS_TENANTID" "$AZUREDNS_APPID" "$AZUREDNS_CLIENTSECRET") accesstoken=$(_azure_getaccess_token "$AZUREDNS_MANAGEDIDENTITY" "$AZUREDNS_TENANTID" "$AZUREDNS_APPID" "$AZUREDNS_CLIENTSECRET")
else
accesstoken=$(echo "$AZUREDNS_BEARERTOKEN" | sed "s/Bearer //g")
fi fi
if ! _get_root "$fulldomain" "$AZUREDNS_SUBSCRIPTIONID" "$accesstoken"; then if ! _get_root "$fulldomain" "$AZUREDNS_SUBSCRIPTIONID" "$accesstoken"; then