]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/paks/squidclamav/update.sh
Fixed squidclamav logging - this fixes bug #0000639
[people/pmueller/ipfire-2.x.git] / src / paks / squidclamav / update.sh
index 3387a89ed106b3141a72e9a9e3f70de4a1235000..95516021498f344f18c4a9abe187d50a7f238672 100644 (file)
 . /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