updated postinst script
authorMax Usachev <maxusachev@gmail.com>
Wed, 16 Jun 2010 09:44:07 +0000 (12:44 +0300)
committerMax Usachev <maxusachev@gmail.com>
Wed, 16 Jun 2010 09:44:07 +0000 (12:44 +0300)
debian/meabook.postinst

index 1d49e8d..cbc715d 100755 (executable)
@@ -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