Fabian_Hahn
New Pleskian
The script to rebuild AWstats will fail if the first client to hit the server is from an IP v6 address.
This change will fix the problem:
log_first_rec_dtime=`head -n 1 $http_log | awk -F'[[/:]' '{print $3,$2,$4}'`
log_first_rec_dtime=`head -n 1 $http_log | awk '{print $4}' | awk -F'[[/:]' '{print $3,$2,$4}'`
Cheers,
Fabian
This change will fix the problem:
log_first_rec_dtime=`head -n 1 $http_log | awk -F'[[/:]' '{print $3,$2,$4}'`
log_first_rec_dtime=`head -n 1 $http_log | awk '{print $4}' | awk -F'[[/:]' '{print $3,$2,$4}'`
Cheers,
Fabian