Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
43503a20
Commit
43503a20
authored
Aug 24, 2022
by
Viktor Sokhan
Browse files
Fix
parent
ec53b27d
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_yc.sh
View file @
43503a20
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
#YC_SA_ID="" # Service Account ID
#YC_SA_ID="" # Service Account ID
#YC_SA_Key_ID="" # Service Account IAM Key ID
#YC_SA_Key_ID="" # Service Account IAM Key ID
#YC_SA_Key_File_Path="/path/to/private.key" # Path to private.key use instead of PEM
#YC_SA_Key_File_Path="/path/to/private.key" # Path to private.key use instead of PEM
#YC_SA_Key_File_PEM="" #
C
ontent of private.key use instead of Path
#YC_SA_Key_File_PEM
_b64
="" #
Base64 c
ontent of private.key use instead of Path
YC_Api
=
"https://dns.api.cloud.yandex.net/dns/v1"
YC_Api
=
"https://dns.api.cloud.yandex.net/dns/v1"
######## Public functions #####################
######## Public functions #####################
...
@@ -15,8 +15,8 @@ dns_yc_add() {
...
@@ -15,8 +15,8 @@ dns_yc_add() {
fulldomain
=
"
$(
echo
"
$1
"
.
| _lower_case
)
"
# Add dot at end of domain name
fulldomain
=
"
$(
echo
"
$1
"
.
| _lower_case
)
"
# Add dot at end of domain name
txtvalue
=
$2
txtvalue
=
$2
if
[
"
$YC_SA_Key_File_PEM
"
]
;
then
if
[
"
$YC_SA_Key_File_PEM
_b64
"
]
;
then
YC_SA_Key_File
=
"<(echo '
$YC_SA_Key_File_PEM
'
)"
YC_SA_Key_File
=
"<(echo '
$YC_SA_Key_File_PEM
_b64
' | _dbase64
)"
else
else
YC_SA_Key_File
=
$YC_SA_Key_File_Path
YC_SA_Key_File
=
$YC_SA_Key_File_Path
fi
fi
...
...
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