summaryrefslogtreecommitdiff
path: root/misc/xapian-omega/doinst.sh
diff options
context:
space:
mode:
authorCharles <SlackBuilds@catcons.co.uk>2011-01-10 14:55:53 -0600
committerRobby Workman <rworkman@slackbuilds.org>2011-01-10 14:55:53 -0600
commita982aa7b2112fd244dfcd36b2b35757572ac6d38 (patch)
tree49ddc9a432f4c984c92a1101c3519f139fc481e3 /misc/xapian-omega/doinst.sh
parent9b2a7f3c265456d3bbd00ff203bb8bbc16f088da (diff)
downloadslackbuilds-a982aa7b2112fd244dfcd36b2b35757572ac6d38.tar.gz
misc/xapian-omega: Added (CGI search frontend and indexers)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'misc/xapian-omega/doinst.sh')
-rw-r--r--misc/xapian-omega/doinst.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/misc/xapian-omega/doinst.sh b/misc/xapian-omega/doinst.sh
new file mode 100644
index 0000000000..7ece5d2656
--- /dev/null
+++ b/misc/xapian-omega/doinst.sh
@@ -0,0 +1,14 @@
+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/omega.conf.new
+