diff options
author | Menno E. Duursma <druiloor@zonnet.nl> | 2010-05-13 00:37:12 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 00:37:12 +0200 |
commit | 6dd98402af4e6d95c8151aebbf92ef9a7a6fd561 (patch) | |
tree | b6a4828867cc61e880ccb896729619ac1b7e62bd /network/mod_chroot/doinst.sh | |
parent | 9bc1c57c1fe78955810a51744c30f6aa6f1582d0 (diff) | |
download | slackbuilds-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.sh | 15 |
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 + |