summaryrefslogtreecommitdiff
path: root/network/squid/doinst.sh
diff options
context:
space:
mode:
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 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
+