diff options
author | Andy Bailey <GooseYArd@gmail.com> | 2010-05-13 00:59:27 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 00:59:27 +0200 |
commit | 42a80fd2c15f9afe6c66bdcf04c8c665718a6218 (patch) | |
tree | d3c4e8fc6550dcd89580e9b6417b5e942843aff3 /misc/lbdb/doinst.sh | |
parent | b237120bce2dd395533d61412094a952db06d82f (diff) | |
download | slackbuilds-42a80fd2c15f9afe6c66bdcf04c8c665718a6218.tar.gz |
misc/lbdb: Added to 13.0 repository
Diffstat (limited to 'misc/lbdb/doinst.sh')
-rw-r--r-- | misc/lbdb/doinst.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/misc/lbdb/doinst.sh b/misc/lbdb/doinst.sh new file mode 100644 index 0000000000..d2f0159dbd --- /dev/null +++ b/misc/lbdb/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/lbdb.rc.new +config etc/lbdb_ldap.rc.new |