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

bootstrap-install: Collect more information in collec_information()


Collect OS information (distro and kernel) and the information about
existing files inside seed_mec user home ("ls -lR").

Signed-off-by: default avatarErik Alexandre Pucci <eap08@c3sl.ufpr.br>
Acked-by: default avatarAdriano da Luz <al08@c3sl.ufpr.br>
parent 9ed42697
No related branches found
No related tags found
No related merge requests found
......@@ -62,6 +62,19 @@ collect_information(){
cat ${AGENT_DIR}/client/conf/inep
printf "\n\n----------------------------------\n\n"
printf " OS information\n%b" \
" ==============\n\n"
printf "Distro\n"
DISTRO=$(cut -sd ' ' -f1 /etc/issue | head -n 1)
if test -f "/etc/le_version"; then
printf "Linux Educacional $(cat /etc/le_version)\n"
elif test "${DISTRO}" = "Ubuntu" -a -f "/usr/lib/edu/fbedu/tutorial.htm"; then
printf "Linux Educacional\n"
fi
printf "Kernel\n"
cut -d " " -f3 /proc/version
printf "\n\n----------------------------------\n\n"
printf " Commands\n%b" \
" ========\n\n"
printf "ifconfig\n"
......@@ -77,6 +90,11 @@ collect_information(){
done
printf "\n\n----------------------------------\n\n"
printf " seed_mec user files\n%b" \
" ===================\n\n"
ls -lR "${SEED_MEC_HOME}"
printf "\n\n----------------------------------\n\n"
printf " Inventory XML\n%b" \
" =============\n\n"
cat ${AGENT_DIR}/data/collect-data.xml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment