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 <>
Acked-by: default avatarJosiney de Souza <>
Acked-by: Klismann Smoger Mottin's avatarKlismann Smoger Mottin <>
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
# Export a variable to inform the agent that this is its first execution
su -c "bash SEED2/" 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