summaryrefslogtreecommitdiffstats
path: root/network/mod_limitipconn/doinst.sh
diff options
context:
space:
mode:
author Menno Duursma <druiloor@zonnet.nl>2010-05-13 00:37:17 +0200
committer David Somero <xgizzmo@slackbuilds.org>2010-05-13 00:37:17 +0200
commitbb003907682d3c9ea99361a128926d7c15ff8326 (patch)
treec152a165cfc439b20c7857a6d68a2b299d44bf82 /network/mod_limitipconn/doinst.sh
parent46e038ecd35e767749e11ad8362446cea38758ad (diff)
downloadslackbuilds-bb003907682d3c9ea99361a128926d7c15ff8326.tar.gz
slackbuilds-bb003907682d3c9ea99361a128926d7c15ff8326.tar.xz
network/mod_limitipconn: Updated for version 0.23
Diffstat (limited to 'network/mod_limitipconn/doinst.sh')
-rw-r--r--network/mod_limitipconn/doinst.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/network/mod_limitipconn/doinst.sh b/network/mod_limitipconn/doinst.sh
new file mode 100644
index 0000000000..e95f4d5c3b
--- /dev/null
+++ b/network/mod_limitipconn/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_limitipconn.conf.new
+