@@ -38,6 +38,11 @@ function npm_error_goaccess_config(){
3838 echo " port 7892" >> ${goan_config}
3939 echo " real-time-html true" >> ${goan_config}
4040 echo " output ${nginx_html} " >> ${goan_config}
41+ if [[ " ${ENABLE_BROWSERS_LIST} " == " True" || ${ENABLE_BROWSERS_LIST} == true ]]; then
42+ echo -e " \n\tENABLING NPM ERROR INSTANCE GOACCESS BROWSERS LIST"
43+ browsers_file=" /goaccess-config/browsers.list"
44+ echo " browsers-file ${browsers_file} " >> ${goan_config}
45+ fi
4146}
4247
4348function npm_error(){
@@ -57,7 +62,7 @@ function npm_error(){
5762
5863 echo -e " \n#GOAN_NPM_ERROR_FILES" >> ${goan_config}
5964 if [[ -d " ${goan_log_path} " ]]; then
60-
65+
6166 echo -e " \n\tAdding error logs..."
6267 IFS=$' \n '
6368 for file in $( find " ${goan_log_path} " -name ' *_error.log' ) ;
@@ -68,7 +73,7 @@ function npm_error(){
6873 then
6974 number_of_lines=` wc -l < $file `
7075 how_many_lines_contain_warn=` grep -c " \[warn\]" $file `
71-
76+
7277 if [ $how_many_lines_contain_warn == $number_of_lines ] && [ $number_of_lines != 0 ]
7378 then
7479 echo -e " \t${file} has inconsistent log types, skipping"
@@ -101,7 +106,7 @@ function npm_error(){
101106 goan_archive_log_count=` ls -1 ${goan_log_path} /* _error.log* .gz 2> /dev/null | wc -l`
102107
103108 if [ $goan_archive_log_count != 0 ]
104- then
109+ then
105110 echo -e " \n\tAdding error archive logs..."
106111
107112 IFS=$' \n '
0 commit comments