aboutsummaryrefslogtreecommitdiffstats
path: root/config/squidGuard
diff options
context:
space:
mode:
authorAlexander Wilke <nachtfalkeaw@web.de>2013-01-09 21:35:11 +0100
committerAlexander Wilke <nachtfalkeaw@web.de>2013-01-09 21:35:11 +0100
commitd222719fd3b25fda1a469b44544317d4ac48f5dd (patch)
tree1f910faf7ddb84acc3249adefe9dd7ca72e12adf /config/squidGuard
parent3c48591e3f654437fc3dccb71104f4901f6b65db (diff)
downloadpfsense-packages-d222719fd3b25fda1a469b44544317d4ac48f5dd.tar.gz
pfsense-packages-d222719fd3b25fda1a469b44544317d4ac48f5dd.tar.bz2
pfsense-packages-d222719fd3b25fda1a469b44544317d4ac48f5dd.zip
Update config/squidGuard/squidguard_configurator.inc
Diffstat (limited to 'config/squidGuard')
-rw-r--r--config/squidGuard/squidguard_configurator.inc13
1 files changed, 9 insertions, 4 deletions
diff --git a/config/squidGuard/squidguard_configurator.inc b/config/squidGuard/squidguard_configurator.inc
index 5cef11cb..0100fba4 100644
--- a/config/squidGuard/squidguard_configurator.inc
+++ b/config/squidGuard/squidguard_configurator.inc
@@ -1883,17 +1883,18 @@ function acl_remove_blacklist_items($items)
# -----------------------------------------------------------------------------
function sg_script_logrotate()
{
- $lines = 1000; # SG logfile truncate lines count
- global $squidguard_config;
- $sglogname = $squidguard_config[F_LOGDIR] . "/" . SQUIDGUARD_LOGFILE;
+ global $squidguard_config;
+
+ $sglogname = $squidguard_config[F_LOGDIR] . "/" . SQUIDGUARD_LOGFILE;
$sgguilogname = $squidguard_config[F_LOGDIR] . "/" . SQUIDGUARD_GUILOGFILE;
+ $sgconflogname = $squidguard_config[F_LOGDIR] . "/" . SQUIDGUARD_CONFLOGFILE;
$res =
<<<EOD
#!/bin/sh
#
# This file generated automaticly with SquidGuard configurator
-# Rotates the block logile
+# Rotates the block logfile
tail -{$lines} {$sglogname} > {$sglogname}.0
tail -{$lines} {$sglogname}.0 > {$sglogname}
rm -f {$sglogname}.0
@@ -1901,6 +1902,10 @@ rm -f {$sglogname}.0
tail -{$lines} {$sgguilogname} > {$sgguilogname}.0
tail -{$lines} {$sgguilogname}.0 > {$sgguilogname}
rm -f {$sgguilogname}.0
+# Rotates the squidguard conf logile
+tail -{$lines} {$sgconflogname} > {$sgconflogname}.0
+tail -{$lines} {$sgconflogname}.0 > {$sgconflogname}
+rm -f {$sgconflogname}.0
EOD;
return $res;
}