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

bootstrap-install: Added remotion of a possible previously installed agent

parent 0bf8d0ce
No related branches found
No related tags found
No related merge requests found
......@@ -103,9 +103,11 @@ tail -n +${BOOTSTRAP_LINES} $0 > "${SEED_MEC_HOME}/${FILE}"
cd "${SEED_MEC_HOME}"
verify_md5
# Extract tar file and run the agent
# Remove old agent and extract the new one
rm -rf "${AGENT_DIR}" &> /dev/null
tar xzf "${FILE}" &> /dev/null
rm -rf "${FILE}" &> /dev/null
if ! chown -R seed_mec:seed_mec "${SEED_MEC_HOME}"; then
rm -rf "${SEED_MEC_HOME}" &> /dev/null
printf "ERRO: Falha ao mudar dono dos arquivos.\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment