From 78a7bf11f80dee6895755435c2759c60f946659e Mon Sep 17 00:00:00 2001 From: Erik Alexandre Pucci <eap08@c3sl.ufpr.br> Date: Wed, 11 Aug 2010 11:05:49 -0300 Subject: [PATCH] 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: Erik Alexandre Pucci <eap08@c3sl.ufpr.br> Acked-by: Ricardo Tavares de Oliveira <rto07@c3sl.ufpr.br> Signed-off-by: Danilo K. S. Yorinori <danilok@c3sl.ufpr.br> --- run-config.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/run-config.sh b/run-config.sh index 49f267f..66e918f 100755 --- a/run-config.sh +++ b/run-config.sh @@ -82,12 +82,12 @@ inep="--inep=${inep}" mac="--mac=${mac}" # Execution -if test $# -gt 1; then +if test $# -ne 1; then echo "Run.sh call: wrong number of parameters ($#)." \ >> ${dirname}/run.log exit 101 -elif test $# -eq 0; then - ${bindir}/client ${url} ${inep} ${mac} ${proxy} >> ${dirname}/run.log +elif [[ $1 == "--inventory" ]]; then + ${bindir}/client $1 ${url} ${inep} ${proxy} >> ${dirname}/run.log elif [[ $1 == "--update" ]]; then retstr=$(${bindir}/client $1 ${url} ${proxy}) retval=$? @@ -95,8 +95,6 @@ elif [[ $1 == "--update" ]]; then echo "$retstr" | tee -a ${dirname}/run.log fi exit $retval -elif [[ $1 == "--inventory" ]]; then - ${bindir}/client $1 ${url} ${inep} ${proxy} >> ${dirname}/run.log else echo "Run.sh call: wrong parameter (\"$1\")." >> ${dirname}/run.log exit 102 -- GitLab