summaryrefslogtreecommitdiff
path: root/system/autoarchive/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'system/autoarchive/doinst.sh')
-rw-r--r--system/autoarchive/doinst.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/system/autoarchive/doinst.sh b/system/autoarchive/doinst.sh
new file mode 100644
index 0000000000..13f58a01e8
--- /dev/null
+++ b/system/autoarchive/doinst.sh
@@ -0,0 +1,15 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ rm $NEW
+ fi
+}
+
+config /etc/aa/aa.conf.new
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi