Commit 9dc7060c authored by Luiza Wille's avatar Luiza Wille

Issue #63: changed some variable names and added a config.sh.example under curl

Signed-off-by: Luiza Wille's avatarLuiza Wille <lmwc14@inf.ufpr.br>
parent d5242c8f
# WARNING: This is only an example file. You should copy it and rename to 'config.sh' in the same directory as this file, and then apply your modifications.
# This file only contains some config variables:
# This variable sets the host in which the database is running
dbHostname="localhost:9200/"
......@@ -26,23 +26,23 @@ fi
source ./config.sh
# Check if all variables in config file are set:
setInFile='scripts/expenses/config.sh'
configFile='scripts/expenses/config.sh'
if [ -z "${index}" ]; then
inputError "index" $setInFile
inputError "index" $configFile
exit;
fi
if [ -z "${host}" ]; then
inputError "host" $setInFile
inputError "host" $configFile
exit;
fi
if [ -z "${columnName}" ]; then
inputError "columnName" $setInFile
inputError "columnName" $configFile
exit;
fi
size=${#filter[@]}
if [ "$size" -lt 1 ]; then
inputError "filter" $setInFile
inputError "filter" $configFile
exit;
fi
......
......@@ -25,23 +25,23 @@ fi
source ./config.sh
# Check if all variables in config file are set:
setInFile='scripts/travel_allowance/config.sh'
configFile='scripts/travel_allowance/config.sh'
if [ -z "${index}" ]; then
inputError "index" $setInFile
inputError "index" $configFile
exit;
fi
if [ -z "${host}" ]; then
inputError "host" $setInFile
inputError "host" $configFile
exit;
fi
if [ -z "${columnName}" ]; then
inputError "columnName" $setInFile
inputError "columnName" $configFile
exit;
fi
size=${#filter[@]}
if [ "$size" -lt 1 ]; then
inputError "filter" $setInFile
inputError "filter" $configFile
exit;
fi
......
......@@ -28,23 +28,23 @@ if [ "$#" -ne 4 ]; then
fi
source ./config.sh
setInFile='scripts/workers/config.sh'
configFile='scripts/workers/config.sh'
if [ -z "${index}" ]; then
inputError "index" $setInFile
inputError "index" $configFile
exit;
fi
if [ -z "${host}" ]; then
inputError "host" $setInFile
inputError "host" $configFile
exit;
fi
if [ -z "${columnName}" ]; then
inputError "columnName" $setInFile
inputError "columnName" $configFile
exit;
fi
size=${#filter[@]}
if [ "$size" -lt 1 ]; then
inputError "filter" $setInFile
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