From c7fd1276137a02c22646b5c67618982b3aa1e593 Mon Sep 17 00:00:00 2001 From: hael Date: Wed, 12 Apr 2023 07:02:22 +0000 Subject: [PATCH] Nothing to do just in case if OPERATION is CREATE --- entrypoint.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 01a5a2d..2fe869d 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -218,9 +218,8 @@ if [[ "$PUBLIC_PROXY_PATH" != "" && -z "$LOCATION" ]]; then PUBLIC_IP=$(jq -r .LOCAL_NAME $PUBLIC_PROXY_PATH/$FILENAME 2>/dev/null) fi; - if [[ -f "$PUBLIC_PROXY_PATH/$FILENAME" && "$PUBLIC_DOMAIN" == "$DOMAIN" && "$PUBLIC_IP" == "$SOURCE_IP" ]]; then - - echo "Nothing to do." + if [[ -f "$PUBLIC_PROXY_PATH/$FILENAME" && "$PUBLIC_DOMAIN" == "$DOMAIN" && "$PUBLIC_IP" == "$SOURCE_IP" && "$OPERATION" == "CREATE" ]]; then + echo "Nothing to do."; else #Create public proxy domain file