aboutsummaryrefslogtreecommitdiff
path: root/network/squid/doinst.sh
diff options
context:
space:
mode:
authorDavid Somero <dsomero@hotmail.com>2010-05-12 17:44:14 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 17:44:14 +0200
commit633d26a36c9442789a3898508ad14b40589ad070 (patch)
tree619250ca8eb2f626b8717f94784511cea730af6d /network/squid/doinst.sh
parent67c26eccbfc3bae6a022b4d3d500e3ac343874ee (diff)
network/squid: Updated for version 3.0.STABLE14
Diffstat (limited to 'network/squid/doinst.sh')
-rw-r--r--network/squid/doinst.sh6
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
+