Skip to content
Snippets Groups Projects
Commit d85646b2 authored by Edileuton Henrique de Oliveira's avatar Edileuton Henrique de Oliveira
Browse files

agent: Fix .backup directory with root owner

parent 54d5c76b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment