From 93a5ac1edbd6b8645046fd5f3aa195e0ee6483eb Mon Sep 17 00:00:00 2001 From: garimachhabra20 Date: Mon, 22 Oct 2018 13:19:55 +0530 Subject: [PATCH] Modified if condition --- aqua-ethos-setup/aqua_ethos.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqua-ethos-setup/aqua_ethos.sh b/aqua-ethos-setup/aqua_ethos.sh index 23ec497..fa9e65d 100755 --- a/aqua-ethos-setup/aqua_ethos.sh +++ b/aqua-ethos-setup/aqua_ethos.sh @@ -195,7 +195,7 @@ function replaceConfigs { sed -i.bak "s@ETH_KMS_USERNAME@${KMS_USERNAME}@g" "$CONFIG_FILE" sed -i.bak "s@ETH_KMS_PASSWORD@${KMS_PASSWORD}@g" "$CONFIG_FILE" - if [[ -z "$AQUA_WEBHOOK_ENDPOINT" ]]; then + if [[ ! -z "$AQUA_WEBHOOK_ENDPOINT" ]]; then AQUA_WEBHOOK_ENDPOINT_PROVIDED=true WEBHOOK_URL="$AQUA_WEBHOOK_ENDPOINT?token=$SPLUNK_TOKEN&index=ethos_aqua&cluster=$CLUSTER_NAME" else