diff options
author | David Somero <dsomero@hotmail.com> | 2010-05-12 17:44:14 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 17:44:14 +0200 |
commit | 633d26a36c9442789a3898508ad14b40589ad070 (patch) | |
tree | 619250ca8eb2f626b8717f94784511cea730af6d /network/squid/doinst.sh | |
parent | 67c26eccbfc3bae6a022b4d3d500e3ac343874ee (diff) |
network/squid: Updated for version 3.0.STABLE14
Diffstat (limited to 'network/squid/doinst.sh')
-rw-r--r-- | network/squid/doinst.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/network/squid/doinst.sh b/network/squid/doinst.sh index ca824a11f4d8..c811e9a972da 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 + |