Commit 8e38d866 authored by Luiza Wille's avatar Luiza Wille

Issue #63: Changed tabs to spaces and changed a var value in curl/rename_index.sh

Signed-off-by: Luiza Wille's avatarLuiza Wille <lmwc14@inf.ufpr.br>
parent 9dc7060c
......@@ -6,7 +6,7 @@ if [ "$#" -ne 3 ]; then
exit
fi
dbHostname='http://node1.c3sl.ufpr.br:9200/'
dbHostname='scripts/curl/config.sh'
# Copy old index to new index...
curl -u $1 -XPOST "${dbHostname}_reindex?pretty" -H 'Content-Type: application/json' -d'
......
......@@ -13,8 +13,8 @@
# Output: The commands/scripts outputs.
function inputError(){
echo "Var ${1} is unset. Set in file '${2}'."
return 0
echo "Var ${1} is unset. Set in file '${2}'."
return 0
}
if [ "$#" -ne 4 ]; then
......@@ -28,8 +28,8 @@ source ./config.sh
# Check if all variables in config file are set:
configFile='scripts/expenses/config.sh'
if [ -z "${index}" ]; then
inputError "index" $configFile
exit;
inputError "index" $configFile
exit;
fi
if [ -z "${host}" ]; then
inputError "host" $configFile
......
......@@ -12,8 +12,8 @@
# Output: The commands/scripts outputs.
function inputError(){
echo "Var ${1} is unset. Set in file '${2}'."
return 0
echo "Var ${1} is unset. Set in file '${2}'."
return 0
}
if [ "$#" -ne 4 ]; then
......@@ -27,7 +27,7 @@ source ./config.sh
# Check if all variables in config file are set:
configFile='scripts/travel_allowance/config.sh'
if [ -z "${index}" ]; then
inputError "index" $configFile
inputError "index" $configFile
exit;
fi
if [ -z "${host}" ]; then
......
......@@ -16,8 +16,8 @@
# WARNING: We get the day from the CSV file by using cut in characters 7 and 8. This means we assume they will write something like 01 as day 1. If they change it to 1, this script will not work!
function inputError(){
echo "Var ${1} is unset. Set in file '${2}'."
return 0
echo "Var ${1} is unset. Set in file '${2}'."
return 0
}
......@@ -30,21 +30,21 @@ fi
source ./config.sh
configFile='scripts/workers/config.sh'
if [ -z "${index}" ]; then
inputError "index" $configFile
inputError "index" $configFile
exit;
fi
if [ -z "${host}" ]; then
inputError "host" $configFile
inputError "host" $configFile
exit;
fi
if [ -z "${columnName}" ]; then
inputError "columnName" $configFile
inputError "columnName" $configFile
exit;
fi
size=${#filter[@]}
if [ "$size" -lt 1 ]; then
inputError "filter" $configFile
inputError "filter" $configFile
exit;
fi
......
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