#!/bin/sh set -e if [ "$1" = "triggered" ]; then if which update-mime-database >/dev/null 2>&1; then update-mime-database /usr/share/mime fi exit 0 fi if which update-mime-database >/dev/null 2>&1; then update-mime-database /usr/share/mime fi