-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix #2409 (#2430) * Add variable exports for Successful Post Hook and Renew Hook calls (#2431) * fixed json parse regex for support api gcore_cdn (#2381)
- Loading branch information
Showing
3 changed files
with
19 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
#!/usr/bin/env sh | ||
|
||
# Here is the script to deploy the cert to G-Core CDN service (https://gcorelabs.com/ru/) using the G-Core Labs API (https://docs.gcorelabs.com/cdn/). | ||
# Uses command line curl for send requests and jq for parse responses. | ||
# Returns 0 when success. | ||
# | ||
# Written by temoffey <[email protected]> | ||
|
@@ -117,7 +116,7 @@ gcore_cdn_deploy() { | |
_debug _request "$_request" | ||
_response=$(_post "$_request" "https://api.gcdn.co/resources/$_resourceId" '' "PUT") | ||
_debug _response "$_response" | ||
_regex=".*\"sslData\":\([0-9]*\)}.*$" | ||
_regex=".*\"sslData\":\([0-9]*\).*$" | ||
_debug _regex "$_regex" | ||
_sslDataNew=$(echo "$_response" | sed -n "s/$_regex/\1/p") | ||
_debug _sslDataNew "$_sslDataNew" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters