Call this v1.0
parent
43cc3eb21a
commit
dda05c37e3
2
config
2
config
|
@ -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 / "
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue