Verified Commit 1f301983 authored by Raphaël Flores's avatar Raphaël Flores
Browse files

Fix delete pattern to avoid conflict between rare and rare-with-basket. GNP-5796

parent b4e41026
...@@ -84,7 +84,7 @@ curl -s -m 5 ${ES_HOST}:${ES_PORT} > /dev/null ...@@ -84,7 +84,7 @@ curl -s -m 5 ${ES_HOST}:${ES_PORT} > /dev/null
} }
# Get previous existing timestamps # Get previous existing timestamps
PREVIOUS_TIMESTAMPS=$(curl -s "${ES_HOST}:${ES_PORT}/_cat/indices/${APP_NAME}*${APP_ENV}-tmstp*" | "${SED_CMD}" -r "s/.*-tmstp([0-9]+).*/\1/g" | sort -ru | grep -v "$TIMESTAMP") PREVIOUS_TIMESTAMPS=$(curl -s "${ES_HOST}:${ES_PORT}/_cat/indices/${APP_NAME}-${APP_ENV}-tmstp*" | "${SED_CMD}" -r "s/.*-tmstp([0-9]+).*/\1/g" | sort -ru | grep -v "$TIMESTAMP")
# Create index, aliases with their mapping # Create index, aliases with their mapping
$SHELL "${BASEDIR}"/createIndexAndAliases4CI.sh -host "$ES_HOST" -port "$ES_PORT" -app "$APP_NAME" -env "$APP_ENV" -timestamp "$TIMESTAMP" $SHELL "${BASEDIR}"/createIndexAndAliases4CI.sh -host "$ES_HOST" -port "$ES_PORT" -app "$APP_NAME" -env "$APP_ENV" -timestamp "$TIMESTAMP"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment