X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=src%2Fpaks%2Fsquidclamav%2Fupdate.sh;h=95516021498f344f18c4a9abe187d50a7f238672;hb=f18be3b0bf3bfcd01510813fff6c055a219df4c7;hp=89c40d0d7c5d3dd57b5944f3af4977d5f8d76760;hpb=bf660619ef0af1c5af7438c80ed3e678aebc533f;p=ipfire-2.x.git diff --git a/src/paks/squidclamav/update.sh b/src/paks/squidclamav/update.sh index 89c40d0d7c..9551602149 100644 --- a/src/paks/squidclamav/update.sh +++ b/src/paks/squidclamav/update.sh @@ -17,10 +17,22 @@ # along with IPFire; if not, write to the Free Software # # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # # -# Copyright (C) 2007 IPFire-Team . # +# Copyright (C) 2010 IPFire-Team . # # # ############################################################################ # . /opt/pakfire/lib/functions.sh ./uninstall.sh -./install.sh +extract_files + +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