diff options
Diffstat (limited to 'network/pound/doinst.sh')
-rw-r--r-- | network/pound/doinst.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/network/pound/doinst.sh b/network/pound/doinst.sh new file mode 100644 index 0000000000000..d385ca659bfd0 --- /dev/null +++ b/network/pound/doinst.sh @@ -0,0 +1,20 @@ +#! /bin/sh +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/pound.cfg.new +config etc/rc.d/rc.pound.new + +if [ -x /usr/bin/install-info ]; then + /usr/bin/install-info --info-dir=/usr/info /usr/info/pound.info.gz 2>/dev/null +fi + |