diff options
author | Alexander Wilke <nachtfalkeaw@web.de> | 2013-01-09 12:46:20 -0800 |
---|---|---|
committer | Alexander Wilke <nachtfalkeaw@web.de> | 2013-01-09 12:46:20 -0800 |
commit | 7267355c2f576d2c3a1b1f698459b3a402dada26 (patch) | |
tree | 0175b40942a6ffd5b27137fa95574bbba8cd6098 /config/squidGuard/squidguard_configurator.inc | |
parent | 47bc7bba2324c0b1b53acc56bc40284b7c4db5fe (diff) | |
parent | e494a0ececc576cf891c03f34612952e4925b60c (diff) | |
download | pfsense-packages-7267355c2f576d2c3a1b1f698459b3a402dada26.tar.gz pfsense-packages-7267355c2f576d2c3a1b1f698459b3a402dada26.tar.bz2 pfsense-packages-7267355c2f576d2c3a1b1f698459b3a402dada26.zip |
Merge pull request #349 from Nachtfalkeaw/master
squidguard: added XMLRPC Sync and some cosmetics on GUI descriptions
Diffstat (limited to 'config/squidGuard/squidguard_configurator.inc')
-rw-r--r-- | config/squidGuard/squidguard_configurator.inc | 13 |
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; } |