Skip to content
Snippets Groups Projects
Commit 151a22a6 authored by Erik Alexandre Pucci's avatar Erik Alexandre Pucci
Browse files

bootstrap-install: Added a check for the agent execution


Now the installer will check the result of the agent execution. In case of
error, the installer will collect agent and system information before
exiting. The collected data can be sent to the developers by the user.

Signed-off-by: default avatarErik Alexandre Pucci <eap08@c3sl.ufpr.br>
Acked-by: default avatarJosiney de Souza <josineys@c3sl.ufpr.br>
Acked-by: default avatarKlismann Smoger Mottin <ksm09@inf.ufpr.br>
parent 67544d4b
No related branches found
No related tags found
No related merge requests found
...@@ -198,6 +198,11 @@ fi ...@@ -198,6 +198,11 @@ fi
# Export a variable to inform the agent that this is its first execution # Export a variable to inform the agent that this is its first execution
export FIRST_EXECUTION=1 export FIRST_EXECUTION=1
su -c "bash SEED2/agent.sh" seed_mec # Run the agent and check if its execution was alright, exiting in case of error
if ! su -c "bash ${AGENT_DIR}/agent.sh" seed_mec; then
printf "ERRO: Falha na execução do novo agente.\n"
collect_information
exit 6
fi
exit 0 exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment