Commit ebb23594 authored by Cristian Weiland's avatar Cristian Weiland

Issue #52: Add config.sh to .gitignore and create files config.sh.example

Signed-off-by: Cristian Weiland's avatarCristian Weiland <cw14@inf.ufpr.br>
parent b15c9966
......@@ -2,3 +2,4 @@ data
configs
*.swp
*.swo
*config.sh
# 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:
# Index prefix: The prefix of the index in elasticsearch. Ex: gastos
......@@ -6,14 +8,14 @@ index="despesas-pagamentos"
# Column Name: The name of the column we will use to filter data.
columnName="Nome Órgão Superior"
columnName="Código Órgão Superior"
# Filter: An associative array that will be used to filter data. The key should be the initials, and they will be used to generate the index name.
# The value should be the same as in the CSV, since it will be used to match data.
declare -A filter
filter=(
[mec]="MINISTERIO DA EDUCACAO"
[mec]="26000"
)
# Host: ElasticSearch's host. Ex: "localhost"
......
......@@ -31,9 +31,3 @@ if [[ "$5" == "all" || "$5" == "workers" ]]; then
echo "Inserting Workers from ${1}-${2}..."
(cd workers && ./insert_register_payment.sh $1 $2 $3 $4)
fi
if [[ "$5" == "all" || "$5" == "ministry_of_health" ]]; then
# Last but not least, insert data from Health Ministry.
echo "Inserting data from Ministry Of Health from ${1}-${2}..."
(cd ministry_of_health && ./insert_ministry_of_health.sh $1 $2 $3 $4)
fi
# 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:
# Index prefix: The prefix of the index in elasticsearch. Ex: gastos
......@@ -6,14 +8,14 @@ index="despesas-diarias"
# Column Name: The name of the column we will use to filter data.
columnName="Nome Órgão Superior"
columnName="Código Órgão Superior"
# Filter: An associative array that will be used to filter data. The key should be the initials, and they will be used to generate the index name.
# The value should be the same as in the CSV, since it will be used to match data.
declare -A filter
filter=(
[mec]="MINISTERIO DA EDUCACAO"
[mec]="26000"
)
# Host: ElasticSearch's host. Ex: "localhost"
......
# 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:
# Index prefix: The prefix of the index in elasticsearch. Ex: gastos
......
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