From 633d26a36c9442789a3898508ad14b40589ad070 Mon Sep 17 00:00:00 2001 From: David Somero Date: Wed, 12 May 2010 17:44:14 +0200 Subject: network/squid: Updated for version 3.0.STABLE14 --- network/squid/doinst.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'network/squid/doinst.sh') diff --git a/network/squid/doinst.sh b/network/squid/doinst.sh index ca824a11f4..c811e9a972 100644 --- a/network/squid/doinst.sh +++ b/network/squid/doinst.sh @@ -1,12 +1,11 @@ -#!/bin/sh config() { NEW="$1" OLD="$(dirname $NEW)/$(basename $NEW .new)" # If there's no config file by that name, mv it over: if [ ! -r $OLD ]; then mv $NEW $OLD - elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then # toss the redundant copy - rm $NEW + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + rm $NEW # toss the redundant copy fi # Otherwise, we leave the .new copy for the admin to consider... } @@ -26,3 +25,4 @@ config etc/squid/mime.conf.new config etc/squid/squid.conf.new config etc/squid/cachemgr.conf.new config etc/logrotate.d/squid.new + -- cgit v1.2.3