File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,11 @@ function npm_goaccess_config(){
3838 echo " port 7890" >> ${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 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(){
@@ -57,7 +62,7 @@ function npm(){
5762
5863 echo -e " \n#GOAN_NPM_PROXY_FILES" >> ${goan_config}
5964 if [[ -d " ${goan_log_path} " ]]; then
60-
65+
6166 echo -e " \n\tAdding proxy logs..."
6267 IFS=$' \n '
6368 for file in $( find " ${goan_log_path} " -name ' proxy*host-*_access.log' ! -name " *_error.log" ) ;
@@ -100,7 +105,7 @@ function npm(){
100105 goan_archive_detail_log_count=0
101106
102107 if [ $goan_archive_log_count != 0 ]
103- then
108+ then
104109 echo -e " \n\tAdding proxy archive logs..."
105110
106111 IFS=$' \n '
@@ -138,7 +143,7 @@ function npm(){
138143 unset IFS
139144
140145 echo -e " \n\tAdded (${goan_archive_detail_log_count} ) proxy archived logs from ${goan_log_path} ..."
141-
146+
142147 else
143148 echo -e " \n\tNo archived logs found at ${goan_log_path} ..."
144149 fi
You can’t perform that action at this time.
0 commit comments