summaryrefslogtreecommitdiff
path: root/network/mod_chroot/doinst.sh
diff options
context:
space:
mode:
authorMenno E. Duursma <druiloor@zonnet.nl>2010-05-13 00:37:12 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:37:12 +0200
commit6dd98402af4e6d95c8151aebbf92ef9a7a6fd561 (patch)
treeb6a4828867cc61e880ccb896729619ac1b7e62bd /network/mod_chroot/doinst.sh
parent9bc1c57c1fe78955810a51744c30f6aa6f1582d0 (diff)
downloadslackbuilds-6dd98402af4e6d95c8151aebbf92ef9a7a6fd561.tar.gz
network/mod_chroot: Updated for version 0.5
Diffstat (limited to 'network/mod_chroot/doinst.sh')
-rw-r--r--network/mod_chroot/doinst.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/network/mod_chroot/doinst.sh b/network/mod_chroot/doinst.sh
new file mode 100644
index 0000000000..19f5d6fd25
--- /dev/null
+++ b/network/mod_chroot/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/httpd/mod_chroot.conf.new
+