Call this v1.0

master
Pentium44 2020-12-24 20:09:03 -08:00
parent 43cc3eb21a
commit dda05c37e3
2 changed files with 5 additions and 3 deletions

2
config
View File

@ -6,6 +6,8 @@
DOMAIN="hosting.cddo.cf"
# Where to put [domain name]-[date].html when generated
OUTPUTDIR="/opt/htdocs" # Where the parsed HTML log file will go
# Directory in which lighttpd logs are located (access.log)
LOGDIR="/var/log/lighttpd"
# String to search for; great for finding individual page
# hits, default searches for root hits from [domain name]
SEARCHSTRING="GET / "

View File

@ -5,7 +5,7 @@
#
# Include configuartion file
. config
. `pwd`/config
# Date string for html generation
datestring=`date +"%Y%m%d-%H%M"`
@ -14,9 +14,9 @@ datestring=`date +"%Y%m%d-%H%M"`
PROJTITLE="SpeedyParse"
PROJVERSION="1.0"
cd /var/log/lighttpd
cd $LOGDIR
if [ -f access.*.gz ]; then
if [ -f access.log.2.gz ]; then
echo "Extracting access.log files"
tar -xzf *.gz
fi