1 |
diff -Nur smeserver-xt_geoip-1.0.1.old/root/etc/e-smith/templates/etc/crontab/xt_geoip smeserver-xt_geoip-1.0.1/root/etc/e-smith/templates/etc/crontab/xt_geoip |
2 |
--- smeserver-xt_geoip-1.0.1.old/root/etc/e-smith/templates/etc/crontab/xt_geoip 2019-09-21 12:18:51.807000000 -0400 |
3 |
+++ smeserver-xt_geoip-1.0.1/root/etc/e-smith/templates/etc/crontab/xt_geoip 2019-09-21 12:27:13.046000000 -0400 |
4 |
@@ -1,6 +1,13 @@ |
5 |
-# saturday at 06:00 update xtables geoip base |
6 |
-00 06 * * 6 root /usr/share/xt_geoip/update_base |
7 |
-50 1 * * * root /usr/share/xt_geoip/geoip_stats ssh |
8 |
-55 1 * * * root /usr/share/xt_geoip/geoip_stats ipt |
9 |
-05 2 * * * root /usr/share/xt_geoip/geoip_listat |
10 |
-# |
11 |
\ Pas de fin de ligne à la fin du fichier |
12 |
+{ |
13 |
+my $output = ( ($masq{'XTlogmail'} || "disabled") eq "disabled" )? ">/dev/null" : ""; |
14 |
+ |
15 |
+$OUT .= " |
16 |
+# saturday at 06:00 update xtables geoip base |
17 |
+00 06 * * 6 root /usr/share/xt_geoip/update_base $output |
18 |
+50 1 * * * root /usr/share/xt_geoip/geoip_stats ssh $output |
19 |
+55 1 * * * root /usr/share/xt_geoip/geoip_stats ipt $output |
20 |
+05 2 * * * root /usr/share/xt_geoip/geoip_listat $output |
21 |
+# |
22 |
+"; |
23 |
+} |
24 |
+ |