aboutsummaryrefslogtreecommitdiff
path: root/network/dillo/doinst.sh
diff options
context:
space:
mode:
authorMikhail Zotov <mikhail dot ru at gmail dot com>2010-05-13 00:36:10 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:36:10 +0200
commitc3cca32d89dc715b5b82207d49a6aa47d7e399a2 (patch)
tree2f8d2a3572c3624c1351ea83de377e9b394e4a5a /network/dillo/doinst.sh
parent9904452d56a1cf26fe801c89fba888277e9a1b87 (diff)
network/dillo: Updated for version 2.2
Diffstat (limited to 'network/dillo/doinst.sh')
-rw-r--r--network/dillo/doinst.sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/network/dillo/doinst.sh b/network/dillo/doinst.sh
index fdf3c6249e1a..0d18ec2dede9 100644
--- a/network/dillo/doinst.sh
+++ b/network/dillo/doinst.sh
@@ -1,15 +1,21 @@
config() {
NEW="$1"
- OLD="`dirname $NEW`/`basename $NEW .new`"
+ 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
+ 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/dillorc.new
-config etc/dpidrc.new
+config etc/dillo/dillorc.new
+config etc/dillo/dpidrc.new
+config etc/dillo/keysrc.new
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+