Skip to content
Snippets Groups Projects
Commit 78a7bf11 authored by Erik Alexandre Pucci's avatar Erik Alexandre Pucci Committed by Danilo K. S. Yorinori
Browse files

run-config.sh: Removed client call with availability option


Availability option is not being used by the collect agent and it will not
be needed anymore. Therefore, it's being removed from client.

Signed-off-by: default avatarErik Alexandre Pucci <eap08@c3sl.ufpr.br>
Acked-by: default avatarRicardo Tavares de Oliveira <rto07@c3sl.ufpr.br>
Signed-off-by: default avatarDanilo K. S. Yorinori <danilok@c3sl.ufpr.br>
parent 0940c512
No related branches found
No related tags found
No related merge requests found
...@@ -82,12 +82,12 @@ inep="--inep=${inep}" ...@@ -82,12 +82,12 @@ inep="--inep=${inep}"
mac="--mac=${mac}" mac="--mac=${mac}"
# Execution # Execution
if test $# -gt 1; then if test $# -ne 1; then
echo "Run.sh call: wrong number of parameters ($#)." \ echo "Run.sh call: wrong number of parameters ($#)." \
>> ${dirname}/run.log >> ${dirname}/run.log
exit 101 exit 101
elif test $# -eq 0; then elif [[ $1 == "--inventory" ]]; then
${bindir}/client ${url} ${inep} ${mac} ${proxy} >> ${dirname}/run.log ${bindir}/client $1 ${url} ${inep} ${proxy} >> ${dirname}/run.log
elif [[ $1 == "--update" ]]; then elif [[ $1 == "--update" ]]; then
retstr=$(${bindir}/client $1 ${url} ${proxy}) retstr=$(${bindir}/client $1 ${url} ${proxy})
retval=$? retval=$?
...@@ -95,8 +95,6 @@ elif [[ $1 == "--update" ]]; then ...@@ -95,8 +95,6 @@ elif [[ $1 == "--update" ]]; then
echo "$retstr" | tee -a ${dirname}/run.log echo "$retstr" | tee -a ${dirname}/run.log
fi fi
exit $retval exit $retval
elif [[ $1 == "--inventory" ]]; then
${bindir}/client $1 ${url} ${inep} ${proxy} >> ${dirname}/run.log
else else
echo "Run.sh call: wrong parameter (\"$1\")." >> ${dirname}/run.log echo "Run.sh call: wrong parameter (\"$1\")." >> ${dirname}/run.log
exit 102 exit 102
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment