diff options
author | Zordrak <slackbuilds@tpa.me.uk> | 2010-05-13 00:37:15 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:37:15 +0200 |
commit | 8900f695e50fd4af41fc9cfbdbf821ee8a2b29ef (patch) | |
tree | 86c25082e59d5f51799d94dbce5fc2fe265adf4a /network/mod_geoip2/doinst.sh | |
parent | c34de5f8e296453fae11aac9af5f9c26920ffd6a (diff) | |
download | slackbuilds-8900f695e50fd4af41fc9cfbdbf821ee8a2b29ef.tar.gz |
network/mod_geoip2: Updated for version 1.2.5
Diffstat (limited to 'network/mod_geoip2/doinst.sh')
-rw-r--r-- | network/mod_geoip2/doinst.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/network/mod_geoip2/doinst.sh b/network/mod_geoip2/doinst.sh new file mode 100644 index 0000000000..165a3d9507 --- /dev/null +++ b/network/mod_geoip2/doinst.sh @@ -0,0 +1,15 @@ +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/mod_geoip.conf.new + |