mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 13:11:41 +00:00
Syntax fix part 2
This commit is contained in:
parent
e2cc350fbc
commit
753d0e7df7
@ -62,8 +62,7 @@ kong_deploy() {
|
|||||||
#Check if ssl plugins is aready enabled (if not => POST else => PATCH)
|
#Check if ssl plugins is aready enabled (if not => POST else => PATCH)
|
||||||
ssl_uuid=$(_get "$KONG_URL/apis/$uuid/plugins" | _egrep_o '"id":"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"[a-zA-Z0-9\-\,\"_\:]*"name":"ssl"' | _egrep_o '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}')
|
ssl_uuid=$(_get "$KONG_URL/apis/$uuid/plugins" | _egrep_o '"id":"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"[a-zA-Z0-9\-\,\"_\:]*"name":"ssl"' | _egrep_o '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}')
|
||||||
_debug ssl_uuid "$ssl_uuid"
|
_debug ssl_uuid "$ssl_uuid"
|
||||||
if [ "$ssl_uuid" = "" ]
|
if [ "$ssl_uuid" = "" ]; then
|
||||||
then
|
|
||||||
#Post certificate to Kong
|
#Post certificate to Kong
|
||||||
response=$(_post "$content" "$KONG_URL/apis/$uuid/plugins" "" "POST")
|
response=$(_post "$content" "$KONG_URL/apis/$uuid/plugins" "" "POST")
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user