Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
urgi-is
data-discovery
Commits
1f301983
Verified
Commit
1f301983
authored
Nov 06, 2020
by
Raphaël Flores
Browse files
Fix delete pattern to avoid conflict between rare and rare-with-basket.
GNP-5796
parent
b4e41026
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/index.sh
View file @
1f301983
...
...
@@ -84,7 +84,7 @@ curl -s -m 5 ${ES_HOST}:${ES_PORT} > /dev/null
}
# 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
$SHELL
"
${
BASEDIR
}
"
/createIndexAndAliases4CI.sh
-host
"
$ES_HOST
"
-port
"
$ES_PORT
"
-app
"
$APP_NAME
"
-env
"
$APP_ENV
"
-timestamp
"
$TIMESTAMP
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment