From 8900f695e50fd4af41fc9cfbdbf821ee8a2b29ef Mon Sep 17 00:00:00 2001 From: Zordrak Date: Thu, 13 May 2010 00:37:15 +0200 Subject: network/mod_geoip2: Updated for version 1.2.5 --- network/mod_geoip2/doinst.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 network/mod_geoip2/doinst.sh (limited to 'network/mod_geoip2/doinst.sh') 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 + -- cgit v1.2.3