aboutsummaryrefslogtreecommitdiffstats
path: root/config/squidGuard/squidguard_configurator.inc
diff options
context:
space:
mode:
authorsebvdk <sebvdk@foxatwork.be>2013-10-24 12:14:05 +0200
committersebvdk <sebvdk@foxatwork.be>2013-10-24 12:14:05 +0200
commit794687c1279bdb775a4c71dedb64d8c0a72179a3 (patch)
tree10abd517e9e51a0732cfc63ce5a794bcc6c202b8 /config/squidGuard/squidguard_configurator.inc
parentef33365b399dcbf02ba02625d21d97af547702b9 (diff)
downloadpfsense-packages-794687c1279bdb775a4c71dedb64d8c0a72179a3.tar.gz
pfsense-packages-794687c1279bdb775a4c71dedb64d8c0a72179a3.tar.bz2
pfsense-packages-794687c1279bdb775a4c71dedb64d8c0a72179a3.zip
Fix logrotate lines max
$lines variable is not defined in "sg_script_logrotate" function. tail: -: No such file or directory
Diffstat (limited to 'config/squidGuard/squidguard_configurator.inc')
-rw-r--r--config/squidGuard/squidguard_configurator.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/squidGuard/squidguard_configurator.inc b/config/squidGuard/squidguard_configurator.inc
index ab44ae8d..5dbfcc43 100644
--- a/config/squidGuard/squidguard_configurator.inc
+++ b/config/squidGuard/squidguard_configurator.inc
@@ -205,6 +205,7 @@ define('SQUIDGUARD_GUILOG_LEVEL', SQUIDGUARD_INFO); # log level
define('SQUIDGUARD_GUILOG_MAXCOUNT', 500); # log max lines
define('SQUIDGUARD_GUILOG_ENABLE', true); # on/off gui log - option override GUI settings
define('SQUIDGUARD_LOG_ENABLE', true); # on/off SG log - option override GUI settings
+define('SQUIDGUARD_LOGROTATE_MAXCOUNT', 1000); # logrotate max lines
#
define('FLT_DEFAULT_ALL', 'all');
@@ -1920,7 +1921,8 @@ function acl_remove_blacklist_items($items)
# -----------------------------------------------------------------------------
function sg_script_logrotate()
{
-
+ $lines = SQUIDGUARD_LOGROTATE_MAXCOUNT;
+
global $squidguard_config;
$sglogname = $squidguard_config[F_LOGDIR] . "/" . SQUIDGUARD_LOGFILE;