From a91e824e2299d5b380e692a4cb6a0576650a5f0c Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Tue, 13 Aug 2013 15:18:13 -0400 Subject: [PATCH] more output Signed-off-by: Jason Etheridge --- installer/wheezy/eg_wheezy_installer.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/installer/wheezy/eg_wheezy_installer.sh b/installer/wheezy/eg_wheezy_installer.sh index 480185677..2a6ccb7d7 100755 --- a/installer/wheezy/eg_wheezy_installer.sh +++ b/installer/wheezy/eg_wheezy_installer.sh @@ -14,6 +14,8 @@ # GNU General Public License for more details. # ----------------------------------------------------------------------- +date + DOJO_VERSION='1.3.3'; export PATH=/openils/bin:$PATH @@ -291,6 +293,10 @@ fi if [ $AUTOSTART ]; then +if [ $LIVETEST ]; then + rm /openils/var/log/*.log +fi + OSRF_COMMAND=' export LD_LIBRARY_PATH=/openils/lib:/usr/local/lib:/usr/local/lib/dbd:$LD_LIBRARY_PATH \ && export PATH=/openils/bin:$PATH \ @@ -327,19 +333,36 @@ if [ $LIVETEST ]; then echo _.-~= Running perl live tests su - opensrf sh -c 'export PATH=/openils/bin:$PATH ; cd /home/opensrf/Evergreen/Open-ILS/src/perlmods/ ; make livecheck; echo Return Value = $?' echo End of perl live tests =~-._ + echo _.-~= Gathering log summary + echo '' + echo 'wc -l *.log:' + su - opensrf sh -c 'cd /openils/var/log/ ; wc -l *.log' + echo '' + echo 'du -sh *.log:' + su - opensrf sh -c 'cd /openils/var/log/ ; du -sh *.log' + echo '' + echo 'perl -ne 'if (/^\[.*?\] (.*?) \[/) { print "$1\n"; }' osrfsys.log | sort | uniq -c | sort -k2:' + (cd /openils/var/log/ ; perl -ne 'if (/^\[.*?\] (.*?) \[/) { print "$1\n"; }' osrfsys.log | sort | uniq -c | sort -k2) + echo '' + echo End of log summary =~-._ echo _.-~= Gathering system information echo '' uname -a echo 'select version();' | su - postgres -c 'psql -At' echo '' + echo '/proc/meminfo:' cat /proc/meminfo echo '' + echo '/proc/cpuinfo:' cat /proc/cpuinfo echo '' + echo 'dpkg --list:' dpkg --list echo '' + echo 'cpan -l:' sudo cpan -l echo End of system information =~-._ + date else cat <