GoAccessRC added to basic settings, so tabbed_details nginx logs can be

easily processed.
This commit is contained in:
2021-05-14 13:12:56 +00:00
parent 55e700a39e
commit 4af308fdd5
2 changed files with 23 additions and 0 deletions
+15
View File
@@ -110,6 +110,21 @@ esac
# ----------------------------------------------------------
echo "----- Install GoAccess configuration ----------------"
read -p 'Add GoAccess RC config file? [y/N]: ' set_gorc
case $set_gorc in
[Yy]* )
echo 'Installing GoAccess RC'
LOCATION=`dirname "$0"`
cp "${LOCATION}/conf/goaccessrc" "${HOME}/.goaccessrc"
;;
* )
echo 'Skipping'
;;
esac
# ----------------------------------------------------------
echo "----- Append prompt style to ~/.bashrc --------------"
read -p 'Add prompt style to bash config? [y/N]: ' add_style
case $add_style in
+8
View File
@@ -0,0 +1,8 @@
# comment
date-format %d/%b/%Y
time-format %H:%M:%S
log-format %h\t%e\t[%d:%t %^]\t(%K/%k)\t%v\t"%r"\t%s\t%b\t"%R"\t"%u"