projects
/
meabook
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
60885b0
)
updated postinst script
author
Max Usachev
<maxusachev@gmail.com>
Wed, 16 Jun 2010 09:44:07 +0000
(12:44 +0300)
committer
Max Usachev
<maxusachev@gmail.com>
Wed, 16 Jun 2010 09:44:07 +0000
(12:44 +0300)
debian/meabook.postinst
patch
|
blob
|
history
diff --git
a/debian/meabook.postinst
b/debian/meabook.postinst
index
1d49e8d
..
cbc715d
100755
(executable)
--- a/
debian/meabook.postinst
+++ b/
debian/meabook.postinst
@@
-6,7
+6,9
@@
USER="user"
DOC_DIR="/home/$USER/MyDocs/.documents"
DESTDIR="$DOC_DIR/$PKG"
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
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
/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
exit 0