Commit 6a6dd043 authored by Luiza Wille's avatar Luiza Wille

Issue #63: added the command source ./config.sh to rename_index.sh

Signed-off-by: Luiza Wille's avatarLuiza Wille <lmwc14@inf.ufpr.br>
parent 8e38d866
......@@ -6,10 +6,10 @@ if [ "$#" -ne 3 ]; then
exit
fi
dbHostname='scripts/curl/config.sh'
source ./config.sh
# Copy old index to new index...
curl -u $1 -XPOST "${dbHostname}_reindex?pretty" -H 'Content-Type: application/json' -d'
curl -XPOST "${dbHostname}_reindex?pretty" -H 'Content-Type: application/json' -d'
{
"source": {
"index": "'$2'"
......@@ -21,4 +21,4 @@ curl -u $1 -XPOST "${dbHostname}_reindex?pretty" -H 'Content-Type: application/j
'
# Delete old index...
curl -u $1 -XDELETE "${dbHostname}$2?pretty"
curl -XDELETE "${dbHostname}$2?pretty"
Markdown is supported
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