/[smecontribs]/rpms/smeserver-xt_geoip/contribs10/smeserver-xt_geoip-1.3.1-bz12097_fix_logs_date_test.patch
ViewVC logotype

Annotation of /rpms/smeserver-xt_geoip/contribs10/smeserver-xt_geoip-1.3.1-bz12097_fix_logs_date_test.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Mon Jul 11 10:21:14 2022 UTC (22 months, 4 weeks ago) by michel
Branch: MAIN
CVS Tags: smeserver-xt_geoip-1_3_1-20_el7_sme, smeserver-xt_geoip-1_3_1-16_el7_sme, smeserver-xt_geoip-1_3_1-18_el7_sme, smeserver-xt_geoip-1_3_1-15_el7_sme, smeserver-xt_geoip-1_3_1-17_el7_sme, smeserver-xt_geoip-1_3_1-19_el7_sme, HEAD
make: « clog » est à jour.

1 michel 1.1 diff -urN smeserver-xt_geoip-1.3.1.old/root/usr/share/xt_geoip/geoip_stats smeserver-xt_geoip-1.3.1/root/usr/share/xt_geoip/geoip_stats
2     --- smeserver-xt_geoip-1.3.1.old/root/usr/share/xt_geoip/geoip_stats 2022-07-10 12:00:06.000000000 +0400
3     +++ smeserver-xt_geoip-1.3.1/root/usr/share/xt_geoip/geoip_stats 2022-07-10 12:05:34.088000000 +0400
4     @@ -40,7 +40,7 @@
5     TMPFILE=$(mktemp $STATDIR/xt_${PREF}.XXXXXXX)
6     # Day - 1
7     MONTH=$(date --date '1 day ago' +%B)
8     -LOGDAY="${MONTH:0:3} $(date --date '1 day ago' +%d)"
9     +LOGDAY="$(LC_ALL=C date --date '1 day ago' '+%h %e')"
10     DATE=$(date --date '1 day ago' '+%Y-%m-%d')
11     ARCHDATE=$(date --date '90 day ago' '+%Y-%m-%d')
12    
13     @@ -61,8 +61,8 @@
14     # All logfiles update for 2 days, not empty
15     for file in $(find $LOGDIR/* -type f -mtime -2 -size +50c)
16     do
17     -# echo $(echo $CMD1 $file $CMD2 "'^$LOGDAY'" $CMD3)
18     - eval $(echo $CMD1 $file $CMD2 "'^$LOGDAY'" $CMD3)
19     +# echo "$(echo $CMD1 $file $CMD2 \'^"$LOGDAY"\' $CMD3)"
20     + eval "$(echo $CMD1 $file $CMD2 \'^"$LOGDAY"\' $CMD3)"
21     done
22    
23     # number of incidents by IP, sorted by IP

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed