Commit d8ab07f7 authored by Erik Alexandre Pucci's avatar Erik Alexandre Pucci

bootstrap-install: Added export of $FIRST_EXECUTION before agent execution

This variable will inform the agent that this is its first execution, so it
will behave diferently, exiting in case of errors previously not checked by
the old versions of the agent.
Signed-off-by: default avatarErik Alexandre Pucci <eap08@c3sl.ufpr.br>
Acked-by: default avatarJosiney de Souza <josineys@c3sl.ufpr.br>
Acked-by: Klismann Smoger Mottin's avatarKlismann Smoger Mottin <ksm09@inf.ufpr.br>
parent e829757d
......@@ -113,6 +113,10 @@ if ! chown -R seed_mec:seed_mec "${SEED_MEC_HOME}"; then
printf "ERRO: Falha ao mudar dono dos arquivos.\n"
exit 5
fi
# Export a variable to inform the agent that this is its first execution
export FIRST_EXECUTION=1
su -c "bash SEED2/agent.sh" seed_mec
exit 0
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