thecantero 8 years ago
parent
commit
4b02ee5b46
1 changed files with 1 additions and 1 deletions
  1. 1 1
      deploy/kong.sh

+ 1 - 1
deploy/kong.sh

@@ -67,7 +67,7 @@ kong_deploy() {
   _debug content "$content"
   _debug content "$content"
   #Check if sslcreated (if not => POST else => PATCH)
   #Check if sslcreated (if not => POST else => PATCH)
 
 
-  if [ -z "$ssl_uuid" ]; then
+  if [ ! -z "$ssl_uuid" ]; then
     #Post certificate to Kong
     #Post certificate to Kong
     response=$(_post "$content" "$KONG_URL/certificates" "" "POST")
     response=$(_post "$content" "$KONG_URL/certificates" "" "POST")
   else
   else