Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #7 from imolko/develop
Browse files Browse the repository at this point in the history
Eliminando indices previos del alias.
  • Loading branch information
yohanyflores authored Jul 19, 2017
2 parents a93c56e + a320d97 commit d1d09bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conf-templates/aurora.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,11 @@ curl -XPUT "imk-elastic5:9200/avatares_${INDEX_NAME_SUFFIX}?pretty" -H 'Content-
'

# Creamos el alias añadiendo el item creado.
curl -XPOST "imk-elastic5:9200/_aliases?pretty" -H 'Content-Type: application/json' -d"
{
\"actions\": [
{ \"remove\": { \"index\": \"*\", \"alias\": \"avatares\" }},
{ \"add\": { \"index\": \"avatares_${INDEX_NAME_SUFFIX}\", \"alias\": \"avatares\" }}
]
}
Expand Down

0 comments on commit d1d09bd

Please sign in to comment.