summaryrefslogtreecommitdiff
path: root/network/suhosin/doinst.sh
diff options
context:
space:
mode:
authorMenno Duursma <druiloor@zonnet.nl>2010-05-13 00:38:23 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:38:23 +0200
commitda10dddf46b63f7f9dfd45ca5ca14bd27501d3dc (patch)
treec834eb531446e1d824de9af77adbc7127439671d /network/suhosin/doinst.sh
parent7c7ce215f50fc65d9fa7424f954993b80b0a08cb (diff)
downloadslackbuilds-da10dddf46b63f7f9dfd45ca5ca14bd27501d3dc.tar.gz
network/suhosin: Updated for version 0.9.29
Diffstat (limited to 'network/suhosin/doinst.sh')
-rw-r--r--network/suhosin/doinst.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/network/suhosin/doinst.sh b/network/suhosin/doinst.sh
new file mode 100644
index 0000000000..f6da772a25
--- /dev/null
+++ b/network/suhosin/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/php/suhosin.ini.new
+