diff options
author | Kevin Pulo <kev@pulo.com.au> | 2010-05-13 01:00:23 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 01:00:23 +0200 |
commit | 064e0a87ac641068af11484f7de49d42685c6ee4 (patch) | |
tree | 17eccde0cf6f21e32dd9382bd1161132ed7a733c /network/tinyproxy/doinst.sh | |
parent | 31aa3ec3e0153775e449bcdfeaba83b156746c93 (diff) | |
download | slackbuilds-064e0a87ac641068af11484f7de49d42685c6ee4.tar.gz |
network/tinyproxy: Added to 13.0 repository
Diffstat (limited to 'network/tinyproxy/doinst.sh')
-rw-r--r-- | network/tinyproxy/doinst.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/network/tinyproxy/doinst.sh b/network/tinyproxy/doinst.sh new file mode 100644 index 0000000000..4eec76f8dc --- /dev/null +++ b/network/tinyproxy/doinst.sh @@ -0,0 +1,17 @@ +#!/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 + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +config etc/tinyproxy.conf.new + |