From cdafebb545ab50b654ef6d1c8837b76611ee4664 Mon Sep 17 00:00:00 2001 From: Max Usachev Date: Wed, 16 Jun 2010 12:44:07 +0300 Subject: [PATCH 1/1] updated postinst script --- debian/meabook.postinst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/meabook.postinst b/debian/meabook.postinst index 1d49e8d..cbc715d 100755 --- a/debian/meabook.postinst +++ b/debian/meabook.postinst @@ -6,7 +6,9 @@ USER="user" DOC_DIR="/home/$USER/MyDocs/.documents" DESTDIR="$DOC_DIR/$PKG" -mkdir $DESTDIR +if [ ! -d $DESTDIR ]; then + mkdir $DESTDIR +fi if [ -x /usr/bin/gtk-update-icon-cache ]; then /usr/bin/gtk-update-icon-cache -f /usr/share/icons/hicolor @@ -16,5 +18,9 @@ if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database fi +if [ -x /usr/bin/update-mime-database ]; then + /usr/bin/update-mime-database /usr/share/mime +fi + exit 0 -- 1.7.9.5