mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 13:11:41 +00:00
Fix
This commit is contained in:
parent
ec53b27dfe
commit
43503a20e5
@ -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="" # Content of private.key use instead of Path
|
#YC_SA_Key_File_PEM_b64="" # Base64 content 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() {
|
|||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user