mirror of
https://github.com/aaru-dps/Aaru.git
synced 2026-07-08 17:56:18 +00:00
35 lines
735 B
Bash
Executable File
35 lines
735 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
case "$1" in
|
|
configure)
|
|
# Update icon cache
|
|
if which gtk-update-icon-cache >/dev/null 2>&1; then
|
|
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor || true
|
|
fi
|
|
|
|
# Update MIME database
|
|
if which update-mime-database >/dev/null 2>&1; then
|
|
update-mime-database /usr/share/mime || true
|
|
fi
|
|
|
|
# Update desktop database
|
|
if which update-desktop-database >/dev/null 2>&1; then
|
|
update-desktop-database -q || true
|
|
fi
|
|
;;
|
|
|
|
abort-upgrade|abort-remove|abort-deconfigure)
|
|
;;
|
|
|
|
*)
|
|
echo "postinst called with unknown argument \`$1'" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
#DEBHELPER#
|
|
|
|
exit 0
|
|
|