mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
Fixed squidclamav logging - this fixes bug #0000639
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
#squid_port 3128
|
#squid_port 3128
|
||||||
proxy none
|
proxy none
|
||||||
#
|
#
|
||||||
logfile /var/log/squidclamav.log
|
logfile /var/log/squid/squidclamav.log
|
||||||
redirect http://127.0.0.1:81/clwarn.cgi
|
redirect http://127.0.0.1:81/clwarn.cgi
|
||||||
#
|
#
|
||||||
debug 0
|
debug 0
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ DL_FROM = $(URL_IPFIRE)
|
|||||||
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
||||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||||
PROG = squidclamav
|
PROG = squidclamav
|
||||||
PAK_VER = 11
|
PAK_VER = 12
|
||||||
|
|
||||||
DEPS = "clamav"
|
DEPS = "clamav"
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,15 @@
|
|||||||
. /opt/pakfire/lib/functions.sh
|
. /opt/pakfire/lib/functions.sh
|
||||||
./uninstall.sh
|
./uninstall.sh
|
||||||
extract_files
|
extract_files
|
||||||
# Restoring the backup has to be excluded because config file changed
|
|
||||||
# restore_backup ${NAME}
|
VERSION=$(cat /opt/pakfire/db/installed/meta-squidclamav | grep Release | cut -d" " -f2)
|
||||||
|
|
||||||
|
if [ "$VERSION" -gt "10" ]; then
|
||||||
|
restore_backup ${NAME}
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$VERSION" -lt "11" ]; then
|
||||||
|
sed -e "s|logfile.*|logfile /var/log/squid/squidclamav.log|g" /etc/squidclamav.conf
|
||||||
|
fi
|
||||||
|
|
||||||
/etc/init.d/squid restart
|
/etc/init.d/squid restart
|
||||||
|
|||||||
Reference in New Issue
Block a user