From d85646b252df4af71f591f5ab43db6224e687582 Mon Sep 17 00:00:00 2001 From: Edileuton Henrique de Oliveira <eho09@c3sl.ufpr.br> Date: Fri, 20 Dec 2013 11:17:02 -0200 Subject: [PATCH] agent: Fix .backup directory with root owner Signed-off-by: Edileuton Henrique de Oliveira <eho09@c3sl.ufpr.br> --- agent/bootstrap/install | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/agent/bootstrap/install b/agent/bootstrap/install index 242342e..05fca51 100644 --- a/agent/bootstrap/install +++ b/agent/bootstrap/install @@ -40,8 +40,8 @@ collect_information(){ cat ${DATASID_HOME}/conf/proxy printf "version\n" cat ${DATASID_HOME}/conf/version - printf "telecentroInfo\n" - cat ${DATASID_HOME}/conf/telecentroInfo + printf "pointInfo\n" + cat ${DATASID_HOME}/conf/pointInfo printf "\n\n----------------------------------\n\n" printf " OS information\n%b" \ @@ -231,13 +231,6 @@ fi rm -f "${PKG_FILE}" -# Change files owner -if ! chown -R datasid:datasid "${DATASID_HOME}"; then - printf "FALHA!\n" >&3 - printf "ERRO: Falha ao mudar dono dos arquivos.\n" - exit_with_message 5 -fi - printf "OK!\n" >&3 @@ -253,6 +246,14 @@ cp -a ".md5sum" ".backup/" printf "OK!\n" >&3 +# Change files owner +if ! chown -R datasid:datasid "${DATASID_HOME}"; then + printf "FALHA!\n" >&3 + printf "ERRO: Falha ao mudar dono dos arquivos.\n" + exit_with_message 5 +fi + +printf "OK!\n" >&3 printf "Executando o agente pela primeira vez... " >&3 -- GitLab