mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-23 01:12:57 +02:00
Fixed squidclamav logging - this fixes bug #0000639
This commit is contained in:
@@ -24,6 +24,15 @@
|
||||
. /opt/pakfire/lib/functions.sh
|
||||
./uninstall.sh
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user