From 8e385f586f4f3c826f7823c15ecaa5749e59a4fc Mon Sep 17 00:00:00 2001 From: Erik Alexandre Pucci <eap08@c3sl.ufpr.br> Date: Wed, 27 Jul 2011 11:19:45 -0300 Subject: [PATCH] bootstrap-install: Added, improved and corrected some messages and comments Signed-off-by: Erik Alexandre Pucci <eap08@c3sl.ufpr.br> Acked-by: Klismann Smoger Mottin <ksm09@inf.ufpr.br> --- bootstraps/bootstrap-install | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/bootstraps/bootstrap-install b/bootstraps/bootstrap-install index 080de5d..5aa7714 100644 --- a/bootstraps/bootstrap-install +++ b/bootstraps/bootstrap-install @@ -24,7 +24,7 @@ # This function checks the integrity of tar package verify_md5(){ - printf "Checking md5... " + printf "Verificando MD5... " if [[ ${MD5_CHECK} == $(md5sum ${FILE} | awk '{print $1}') ]] ; then printf "OK!\n" else @@ -153,7 +153,7 @@ useradd -m -g seed_mec -s /bin/bash -d "${SEED_MEC_HOME}" \ RETVAL=$? # If an error occurred (return isn't 0), besides the previous existence of -# seed_mec user (return 9, whch means the agent will be reinstalled), print an +# seed_mec user (return 9, which means the agent will be reinstalled), print an # error message and exit if test ${RETVAL} -ne 0 -a ${RETVAL} -ne 9; then printf "ERRO: Falha ao criar o usuário seed_mec.\n" @@ -177,7 +177,7 @@ if ! test -n "${PROJECTOR}" -o -f "/usr/sbin/projetor" -o \ if ! $(echo -e "seed_mec\tALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers) then printf "ERRO: Falha ao adicionar permissões de super-usuário %b" \ - "ao seed_mec.\n" + "ao usuário seed_mec.\n" exit 3 fi fi @@ -193,6 +193,7 @@ rm -rf "${AGENT_DIR}" &> /dev/null tar xzf "${FILE}" &> /dev/null rm -rf "${FILE}" &> /dev/null +# Change files owner 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" @@ -209,4 +210,8 @@ if ! su -c "bash ${AGENT_DIR}/agent.sh" seed_mec; then exit 6 fi +printf "\nO agente PROINFODATA foi instalado com sucesso. %b%b" \ + "Em caso de dúvidas, acesse o portal do PROINFODATA:\n" \ + "seed.c3sl.ufpr.br\n" + exit 0 -- GitLab