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

run-config.sh: Added non-zero exit codes for run.sh errors

parent 4a181a05
No related branches found
No related tags found
No related merge requests found
...@@ -74,6 +74,7 @@ getProxyConf ...@@ -74,6 +74,7 @@ getProxyConf
if test $# -gt 1; then if test $# -gt 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
elif test $# -eq 0; then elif test $# -eq 0; then
${bindir}/client "${url}" "${inep}" "${mac}" "${phost}" "${pport}" \ ${bindir}/client "${url}" "${inep}" "${mac}" "${phost}" "${pport}" \
"${puid}" "${ppasswd}" >> ${dirname}/run.log 2>&1 "${puid}" "${ppasswd}" >> ${dirname}/run.log 2>&1
...@@ -91,5 +92,6 @@ elif [[ $1 == "--inventory" ]]; then ...@@ -91,5 +92,6 @@ elif [[ $1 == "--inventory" ]]; then
"${puid}" "${ppasswd}" >> ${dirname}/run.log 2>&1 "${puid}" "${ppasswd}" >> ${dirname}/run.log 2>&1
else else
echo "Run.sh call: wrong parameter (\"$1\")." >> ${dirname}/run.log echo "Run.sh call: wrong parameter (\"$1\")." >> ${dirname}/run.log
exit 102
fi fi
EOF EOF
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment