Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
a50158cb
Unverified
Commit
a50158cb
authored
Mar 24, 2022
by
neil
Committed by
GitHub
Mar 24, 2022
Browse files
Merge pull request #3982 from waldner/master
Geoscaling: read credentials when removing records too
parents
6fb8c0ec
8d574ecb
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_geoscaling.sh
View file @
a50158cb
...
...
@@ -58,6 +58,17 @@ dns_geoscaling_rm() {
txt_value
=
$2
_info
"Cleaning up after DNS-01 Geoscaling DNS2 hook"
GEOSCALING_Username
=
"
${
GEOSCALING_Username
:-
$(
_readaccountconf_mutable GEOSCALING_Username
)
}
"
GEOSCALING_Password
=
"
${
GEOSCALING_Password
:-
$(
_readaccountconf_mutable GEOSCALING_Password
)
}
"
if
[
-z
"
$GEOSCALING_Username
"
]
||
[
-z
"
$GEOSCALING_Password
"
]
;
then
GEOSCALING_Username
=
GEOSCALING_Password
=
_err
"No auth details provided. Please set user credentials using the
\$
GEOSCALING_Username and
\$
GEOSCALING_Password environment variables."
return
1
fi
_saveaccountconf_mutable GEOSCALING_Username
"
${
GEOSCALING_Username
}
"
_saveaccountconf_mutable GEOSCALING_Password
"
${
GEOSCALING_Password
}
"
# fills in the $zone_id
find_zone
"
${
full_domain
}
"
||
return
1
_debug
"Zone id '
${
zone_id
}
' will be used."
...
...
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